return filtered;
}
-
protected List<String> getApplicableSecondaryStructureSources()
{
- AlignmentAnnotation[] annotations = af.getViewport().getAlignment()
- .getAlignmentAnnotation();
-
- List<String> ssSources = AlignmentUtils
- .getSecondaryStructureSources(annotations);
- // List<String> ssSources =
- // AlignmentUtils.extractSSSourceInAlignmentAnnotation(annotations);
-
+ AlignmentAnnotation[] annotations = af.getViewport().getAlignment().getAlignmentAnnotation();
+
+ //List<String> ssSources = AlignmentUtils.getSecondaryStructureSources(annotations);
+ List<String> ssSources = AlignmentUtils.extractSSSourceInAlignmentAnnotation(annotations);
+
-
return ssSources;
}
-
+
/**
* Open and calculate the selected tree or PCA on 'OK'
*/
protected void calculate_actionPerformed()
{
boolean doPCA = pca.isSelected();
- String modelName = modelNames.getSelectedItem().toString();
++
+ boolean doPaSiMap = pasimap.isSelected();
+ boolean doPairwise = pairwise.isSelected();
+ String modelName = modelNames.getSelectedItem() == null ? ""
+ : modelNames.getSelectedItem().toString();
- String ssSource = "";
- Object selectedItem = ssSourceDropdown.getSelectedItem();
- if (selectedItem != null)
- {
- ssSource = selectedItem.toString();
+
+ String ssSource = null;
+
+ if (modelName.equals(secondaryStructureModelName)) {
+ Object selectedItem = ssSourceDropdown.getSelectedItem();
+ if (selectedItem != null) {
+ ssSource = selectedItem.toString();
+ }
}
SimilarityParams params = getSimilarityParameters(doPCA);
- if (ssSource.length() > 0)
- {
- params.setSecondaryStructureSource(ssSource);
- }
-
+ params.setSecondaryStructureSource(ssSource);
+
if (doPCA)
{
openPcaPanel(modelName, params);
import java.awt.print.PrinterJob;
import javax.swing.ButtonGroup;
+import javax.swing.JLabel;
import javax.swing.JMenuItem;
+ import javax.swing.JProgressBar;
import javax.swing.JRadioButtonMenuItem;
+import javax.swing.SwingConstants;
import javax.swing.event.InternalFrameAdapter;
import javax.swing.event.InternalFrameEvent;