import jalview.jbgui.GSequenceLink;
import jalview.schemes.ColourSchemeProperty;
import jalview.util.MessageManager;
+import jalview.ws.sifts.SiftsSettings;
import java.awt.BorderLayout;
import java.awt.Color;
if (Cache.getDefault("MAP_WITH_SIFTS", false))
{
siftsMapping.setSelected(true);
+ SiftsSettings.setMapWithSifts(true);
}
else
{
nwMapping.setSelected(true);
+ SiftsSettings.setMapWithSifts(false);
}
/*
Cache.setOrRemove(CHIMERA_PATH, chimeraPath.getText());
Cache.applicationProperties.setProperty("MAP_WITH_SIFTS",
Boolean.toString(siftsMapping.isSelected()));
+ SiftsSettings.setMapWithSifts(siftsMapping.isSelected());
/*
* Save Output settings
import jalview.util.MessageManager;
import jalview.ws.sifts.SiftsClient;
import jalview.ws.sifts.SiftsException;
+import jalview.ws.sifts.SiftsSettings;
import java.io.PrintStream;
import java.util.ArrayList;
}
}
PDBfile pdb = null;
- boolean isMapUsingSIFTs = Boolean.valueOf(jalview.bin.Cache.getDefault(
- "MAP_WITH_SIFTS", "false"));
+ boolean isMapUsingSIFTs = SiftsSettings.isMapWithSifts();
SiftsClient siftsClient = null;
try
{
--- /dev/null
+package jalview.ws.sifts;
+
+public class SiftsSettings
+{
+ private static boolean mapWithSifts = false;
+
+ public static boolean isMapWithSifts()
+ {
+ return mapWithSifts;
+ }
+
+ public static void setMapWithSifts(boolean mapWithSifts)
+ {
+ SiftsSettings.mapWithSifts = mapWithSifts;
+ }
+}