return progressBar == null ? false : progressBar.operationInProgress();
}
-
-
/**
* Sets the text of the status bar. Note that setting a null or empty value
* will cause the status bar to be hidden, with possibly undesirable flicker
.getString("label.select_file_format_before_saving"),
MessageManager.getString("label.file_format_not_specified"),
JvOptionPane.WARNING_MESSAGE);
- currentFileFormat = chooser.getSelectedFormat();
value = chooser.showSaveDialog(this);
if (value != JalviewFileChooser.APPROVE_OPTION)
{
return;
}
+ currentFileFormat = chooser.getSelectedFormat();
}
fileName = chooser.getSelectedFile().getPath();
}
tp = new TreePanel(alignPanel, type, modelName, options);
-
- frameTitle = formCalculationTitle(tp.getPanelTitle(),onSelection,this.title);
-
+
+ frameTitle = formCalculationTitle(tp.getPanelTitle(), onSelection,
+ this.title);
+
Desktop.addInternalFrame(tp, frameTitle, 600, 500);
}
/**
*
- * @param panelTitle - calculation name
- * @param onSelection - true if a selection was analysed
- * @param viewName - null or current view name
- * @param title - alignment frame title
- * @return <calculation Name> (?on region) from (?viewName of) alignment name
+ * @param panelTitle
+ * - calculation name
+ * @param onSelection
+ * - true if a selection was analysed
+ * @param viewName
+ * - null or current view name
+ * @param title
+ * - alignment frame title
+ * @return <calculation Name> (?on region) from (?viewName of) alignment name
*/
- public String formCalculationTitle(String panelTitle,
- boolean onSelection, String title)
+ public String formCalculationTitle(String panelTitle, boolean onSelection,
+ String title)
{
String frameTitle = panelTitle;
-
+
frameTitle += (onSelection ? " on region" : "");
frameTitle += " from ";
- if (viewport.getViewName()!=null)
+ if (viewport.getViewName() != null)
{
frameTitle += viewport.getViewName() + " of ";
}