X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FFeatureSettings.java;h=d65016edd53875582e7e46dbd3346e18b6cc3d10;hb=483e7163b1fb8d4bcb9393014816c944befce328;hp=15f3e5bce42950084bf4dd97fdb66dc7e6ed5eb1;hpb=853624fb32058cccc544ae7d13af6ad4b0800b6c;p=jalview.git diff --git a/src/jalview/gui/FeatureSettings.java b/src/jalview/gui/FeatureSettings.java index 15f3e5b..d65016e 100644 --- a/src/jalview/gui/FeatureSettings.java +++ b/src/jalview/gui/FeatureSettings.java @@ -749,10 +749,8 @@ public class FeatureSettings extends JPanel implements void load() { JalviewFileChooser chooser = new JalviewFileChooser( - jalview.bin.Cache.getProperty("LAST_DIRECTORY"), - new String[] { "fc" }, - new String[] { "Sequence Feature Colours" }, - "Sequence Feature Colours"); + Cache.getProperty("LAST_DIRECTORY"), "fc", + "Sequence Feature Colours", "Sequence Feature Colours"); chooser.setFileView(new jalview.io.JalviewFileView()); chooser.setDialogTitle(MessageManager .getString("label.load_feature_colours")); @@ -818,8 +816,8 @@ public class FeatureSettings extends JPanel implements } else { - Color color = new Color(Integer.parseInt(jucs.getColour(i) - .getRGB(), 16)); + Color color = new Color( + Integer.parseInt(jucs.getColour(i).getRGB(), 16)); fr.setColour(name = jucs.getColour(i).getName(), new FeatureColour(color)); } @@ -844,9 +842,8 @@ public class FeatureSettings extends JPanel implements void save() { JalviewFileChooser chooser = new JalviewFileChooser( - Cache.getProperty("LAST_DIRECTORY"), new String[] { "fc" }, - new String[] { "Sequence Feature Colours" }, - "Sequence Feature Colours"); + Cache.getProperty("LAST_DIRECTORY"), "fc", + "Sequence Feature Colours", "Sequence Feature Colours"); chooser.setFileView(new jalview.io.JalviewFileView()); chooser.setDialogTitle(MessageManager .getString("label.save_feature_colours")); @@ -1402,15 +1399,15 @@ public class FeatureSettings extends JPanel implements public void noDasSourceActive() { complete(); - JOptionPane + JvOptionPane .showInternalConfirmDialog( Desktop.desktop, MessageManager .getString("label.no_das_sources_selected_warn"), MessageManager .getString("label.no_das_sources_selected_title"), - JOptionPane.DEFAULT_OPTION, - JOptionPane.INFORMATION_MESSAGE); + JvOptionPane.DEFAULT_OPTION, + JvOptionPane.INFORMATION_MESSAGE); } // ///////////////////////////////////////////////////////////////////////