- Object ret = openTreePanel(af,
- neighbourJoining.isSelected() ? TreeBuilder.NEIGHBOUR_JOINING
- : TreeBuilder.AVERAGE_DISTANCE,
- modelName, params);
- if (ret instanceof String)
- {
- JvOptionPane.showMessageDialog(this, // was opening on Desktop?
- MessageManager.formatMessage(
- (String) ret,
- MIN_TREE_SELECTION),
- MessageManager.getString("label.not_enough_sequences"),
- JvOptionPane.WARNING_MESSAGE);
-
- }
- }
-
- /**
- * Open a new PCA panel on the desktop
- *
- * @param modelName
- * @param params
- */
- protected void openPcaPanel(String modelName, SimilarityParamsI params)
- {
- Object ret = openPcaPanel(af, modelName, params);
- if (ret instanceof String)
- {
- JvOptionPane.showInternalMessageDialog(this,
- MessageManager.formatMessage(
- (String) ret,
- MIN_PCA_SELECTION),
- MessageManager
- .getString("label.sequence_selection_insufficient"),
- JvOptionPane.WARNING_MESSAGE);
- }
- else
- {
- // only used for test suite
- pcaPanel = (PCAPanel) ret;
- }
-
- }
-
- /**
- * Open a new Tree panel on the desktop statically
- *
- * @param af
- * @param treeType
- * @param modelName
- * @param params
- * @return null, or the string "label.you_need_at_least_n_sequences" if number
- * of sequences selected is inappropriate
- */
- public static Object openTreePanel(AlignFrame af, String treeType,
- String modelName, SimilarityParamsI params)
- {
-