import jalview.io.FileLoader;
import jalview.io.FormatAdapter;
import jalview.io.IdentifyFile;
+import jalview.io.JSONFile;
import jalview.io.JalviewFileChooser;
import jalview.io.JalviewFileView;
import jalview.jbgui.GSplitFrame;
import jalview.jbgui.GStructureViewer;
-import jalview.schemes.ColourSchemeI;
import jalview.structure.StructureSelectionManager;
import jalview.util.ImageMaker;
import jalview.util.MessageManager;
private static AlignFrame currentAlignFrame;
- private static ColourSchemeI currentGlobalColourScheme;
-
- private static boolean currentSeqFeaturesVisible;
-
public static jalview.ws.jws1.Discoverer discoverer;
public static Object[] jalviewClipboard;
{
new FileLoader().LoadFile(viewport, choice, FormatAdapter.FILE,
format);
- viewport.setShowSequenceFeatures(isCurrentSeqFeaturesVisible());
+ viewport.setShowSequenceFeatures(JSONFile.isSeqFeaturesEnabled());
AlignFrame af = viewport.getAlignPanel().alignFrame;
if (af != null)
{
- af.changeColour(getCurrentGlobalColourScheme());
+ af.changeColour(JSONFile.getColourScheme());
af.setMenusForViewport();
}
}
Desktop.currentAlignFrame = currentAlignFrame;
}
- public static ColourSchemeI getCurrentGlobalColourScheme()
- {
- return currentGlobalColourScheme;
- }
-
- public static void setCurrentGlobalColourScheme(
- ColourSchemeI currentGlobalColourScheme)
- {
- Desktop.currentGlobalColourScheme = currentGlobalColourScheme;
- }
-
- public static boolean isCurrentSeqFeaturesVisible()
- {
- return currentSeqFeaturesVisible;
- }
-
- public static void setCurrentSeqFeaturesVisible(
- boolean currentSeqFeaturesVisible)
- {
- Desktop.currentSeqFeaturesVisible = currentSeqFeaturesVisible;
- }
}