package jalview.gui;
import jalview.bin.Cache;
-import jalview.bin.Instance;
import jalview.io.JalviewFileChooser;
import jalview.io.JalviewFileView;
import jalview.util.MessageManager;
chooser.setDialogTitle(MessageManager
.getString("label.choose_filename_for_param_file"));
chooser.setToolTipText(MessageManager.getString("action.save"));
- int value = chooser.showSaveDialog(Instance.getDesktop());
+ int value = chooser.showSaveDialog(Desktop.getInstance());
if (value == JalviewFileChooser.APPROVE_OPTION)
{
outfile = chooser.getSelectedFile();
* if (value == JalviewFileChooser.APPROVE_OPTION) { File choice =
* chooser.getSelectedFile(); jalview.bin.Cache.setProperty("LAST_DIRECTORY",
* choice.getParent()); String defaultColours = jalview.bin.Cache.getDefault(
- * "USER_DEFINED_COLOURS", choice.getPath()); if
+ * Preferences.USER_DEFINED_COLOURS, choice.getPath()); if
* (defaultColours.indexOf(choice.getPath()) == -1) { defaultColours =
* defaultColours.concat("|") .concat(choice.getPath()); } (non-Javadoc)
*
File pfile = new File(filename);
if (pfile.exists() && pfile.canWrite())
{
- if (JvOptionPane.showConfirmDialog(Instance.getDesktop(),
+ if (JvOptionPane.showConfirmDialog(Desktop.getInstance(),
"Delete the preset's file, too ?", "Delete User Preset ?",
JvOptionPane.OK_CANCEL_OPTION) == JvOptionPane.OK_OPTION)
{