*/
private void applyViewProperties()
{
- antiAlias = Cache.getDefault("ANTI_ALIAS", false);
+ antiAlias = Cache.getDefault(Preferences.ANTI_ALIAS, false);
- viewStyle.setShowJVSuffix(Cache.getDefault("SHOW_JVSUFFIX", true));
+ viewStyle.setShowJVSuffix(
+ Cache.getDefault(Preferences.SHOW_JVSUFFIX, true));
setShowAnnotation(Cache.getDefault(Preferences.SHOW_ANNOTATIONS, true));
- setRightAlignIds(Cache.getDefault("RIGHT_ALIGN_IDS", false));
- setCentreColumnLabels(Cache.getDefault("CENTRE_COLUMN_LABELS", false));
- autoCalculateConsensus = Cache.getDefault("AUTO_CALC_CONSENSUS", true);
+ setRightAlignIds(Cache.getDefault(Preferences.RIGHT_ALIGN_IDS, false));
+ setCentreColumnLabels(Cache.getDefault(Preferences.CENTRE_COLUMN_LABELS, false));
+ autoCalculateConsensus = Cache.getDefault(Preferences.AUTO_CALC_CONSENSUS, true);
- setPadGaps(Cache.getDefault("PAD_GAPS", true));
- setShowNPFeats(Cache.getDefault("SHOW_NPFEATS_TOOLTIP", true));
- setShowDBRefs(Cache.getDefault("SHOW_DBREFS_TOOLTIP", true));
- viewStyle.setSeqNameItalics(Cache.getDefault("ID_ITALICS", true));
+ setPadGaps(Cache.getDefault(Preferences.PAD_GAPS, true));
+ setShowNPFeats(Cache.getDefault(Preferences.SHOW_NPFEATS_TOOLTIP, true));
+ setShowDBRefs(Cache.getDefault(Preferences.SHOW_DBREFS_TOOLTIP, true));
+ viewStyle.setSeqNameItalics(Cache.getDefault(Preferences.ID_ITALICS, true));
viewStyle.setWrapAlignment(
Cache.getDefault(Preferences.WRAP_ALIGNMENT, false));
viewStyle.setShowUnconserved(
Cache.getDefault(Preferences.SHOW_UNCONSERVED, false));
sortByTree = Cache.getDefault(Preferences.SORT_BY_TREE, false);
- followSelection = Cache.getDefault("FOLLOW_SELECTIONS", true);
+ followSelection = Cache.getDefault(Preferences.FOLLOW_SELECTIONS, true);
sortAnnotationsBy = SequenceAnnotationOrder
.valueOf(Cache.getDefault(Preferences.SORT_ANNOTATIONS,
SequenceAnnotationOrder.NONE.name()));
{
applyViewProperties();
- String fontName = Cache.getDefault("FONT_NAME", "SansSerif");
- String fontStyle = Cache.getDefault("FONT_STYLE", Font.PLAIN + "");
- String fontSize = Cache.getDefault("FONT_SIZE", "10");
+ String fontName = Cache.getDefault(Preferences.FONT_NAME, "SansSerif");
+ String fontStyle = Cache.getDefault(Preferences.FONT_STYLE,
+ Font.PLAIN + "");
+ String fontSize = Cache.getDefault(Preferences.FONT_SIZE, "10");
int style = 0;
setFont(new Font(fontName, style, Integer.parseInt(fontSize)), true);
alignment
- .setGapCharacter(Cache.getDefault("GAP_SYMBOL", "-").charAt(0));
+ .setGapCharacter(Cache.getDefault(Preferences.GAP_SYMBOL, "-")
+ .charAt(0));
// We must set conservation and consensus before setting colour,
// as Blosum and Clustal require this to be done
{
if (!alignment.isNucleotide())
{
- showConservation = Cache.getDefault(Preferences.SHOW_CONSERVATION, true);
+ showConservation = Cache.getDefault(Preferences.SHOW_CONSERVATION,
+ true);
showQuality = Cache.getDefault(Preferences.SHOW_QUALITY, true);
- showGroupConservation = Cache.getDefault("SHOW_GROUP_CONSERVATION",
- false);
+ showGroupConservation = Cache
+ .getDefault(Preferences.SHOW_GROUP_CONSERVATION, false);
}
- showConsensusHistogram = Cache.getDefault("SHOW_CONSENSUS_HISTOGRAM",
- true);
- showSequenceLogo = Cache.getDefault(Preferences.SHOW_CONSENSUS_LOGO, false);
-
- normaliseSequenceLogo = Cache.getDefault(
- Preferences.NORMALISE_CONSENSUS_LOGO,
+ showConsensusHistogram = Cache
+ .getDefault(Preferences.SHOW_CONSENSUS_HISTOGRAM, true);
+ showSequenceLogo = Cache.getDefault(Preferences.SHOW_CONSENSUS_LOGO,
false);
+
+ normaliseSequenceLogo = Cache
+ .getDefault(Preferences.NORMALISE_CONSENSUS_LOGO, false);
showGroupConsensus = Cache
.getDefault(Preferences.SHOW_GROUP_CONSENSUS, false);
- showConsensus = Cache.getDefault("SHOW_IDENTITY", true);
+ showConsensus = Cache.getDefault(Preferences.SHOW_IDENTITY, true);
showOccupancy = Cache.getDefault(Preferences.SHOW_OCCUPANCY, true);
}
schemeName = Cache.getDefault(Preferences.DEFAULT_COLOUR,
ResidueColourScheme.NONE);
}
- ColourSchemeI colourScheme = ColourSchemeProperty
- .getColourScheme(this, alignment, schemeName);
+ ColourSchemeI colourScheme = ColourSchemeProperty.getColourScheme(this,
+ alignment, schemeName);
residueShading = new ResidueShader(colourScheme);
if (colourScheme instanceof UserColourScheme)
MessageManager.getString("label.new_window"), };
final String question = JvSwingUtils.wrapTooltip(true,
MessageManager.getString("label.open_split_window?"));
-
/*
* options No, Split Window, New Window correspond to
* dialog responses 0, 1, 2 (even though JOptionPane shows them
* in reverse order)
*/
- JvOptionPane dialog = JvOptionPane.newOptionDialog(Desktop.getDesktopPane())
+ JvOptionPane dialog = JvOptionPane
+ .newOptionDialog(Desktop.getDesktopPane())
.setResponseHandler(NO_SPLIT, new Runnable()
{
@Override
public void run()
{
- addDataToAlignment(al);
+ addDataToAlignment(al);
}
}).setResponseHandler(SPLIT_FRAME, new Runnable()
{
public void run()
{
openLinkedAlignmentAs(getAlignPanel().alignFrame,
- new Alignment(getAlignment()), al,
- title, SPLIT_FRAME);
+ new Alignment(getAlignment()), al, title,
+ SPLIT_FRAME);
}
}).setResponseHandler(NEW_WINDOW, new Runnable()
{
* @param mode
* SPLIT_FRAME or NEW_WINDOW
*/
- public static void openLinkedAlignmentAs(AlignFrame thisFrame, AlignmentI thisAlignment,
- AlignmentI al, String title,
- int mode)
+ public static void openLinkedAlignmentAs(AlignFrame thisFrame,
+ AlignmentI thisAlignment, AlignmentI al, String title, int mode)
{
/*
* Identify protein and dna alignments. Make a copy of this one if opening
try
{
- newAlignFrame.setMaximum(
- jalview.bin.Cache.getDefault("SHOW_FULLSCREEN", false));
+ newAlignFrame.setMaximum(jalview.bin.Cache
+ .getDefault(Preferences.SHOW_FULLSCREEN, false));
} catch (java.beans.PropertyVetoException ex)
{
}
* @return the protein alignment in the split frame
*/
static protected AlignmentI openSplitFrame(AlignFrame thisFrame,
- AlignFrame newAlignFrame,
- AlignmentI complement)
+ AlignFrame newAlignFrame, AlignmentI complement)
{
/*
* Make a new frame with a copy of the alignment we are adding to. If this
public class Preferences extends GPreferences
{
- public static final String NOQUESTIONNAIRES = "NOQUESTIONNAIRES";
- public static final String QUESTIONNAIRE = "QUESTIONNAIRE";
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ public static final String ADD_SS_ANN = "ADD_SS_ANN";
+
+ public static final String ADD_TEMPFACT_ANN = "ADD_TEMPFACT_ANN";
+
+ public static final String ALLOW_UNPUBLISHED_PDB_QUERYING = "ALLOW_UNPUBLISHED_PDB_QUERYING";
public static final String ANNOTATIONCOLOUR_MAX = "ANNOTATIONCOLOUR_MAX";
public static final String ANNOTATIONCOLOUR_MIN = "ANNOTATIONCOLOUR_MIN";
- public static final String ENABLE_SPLIT_FRAME = "ENABLE_SPLIT_FRAME";
+ public static final String ANTI_ALIAS = "ANTI_ALIAS";
- public static final String SCALE_PROTEIN_TO_CDNA = "SCALE_PROTEIN_TO_CDNA";
+ public static final String AUTO_CALC_CONSENSUS = "AUTO_CALC_CONSENSUS";
+
+ public static final String AUTOASSOCIATE_PDBANDSEQS = "AUTOASSOCIATE_PDBANDSEQS";
+
+ public static final String CENTRE_COLUMN_LABELS = "CENTRE_COLUMN_LABELS";
+
+ public static final String CHIMERA_PATH = "CHIMERA_PATH";
+
+ public static final String DBREFFETCH_USEPICR = "DBREFFETCH_USEPICR";
public static final String DEFAULT_COLOUR = "DEFAULT_COLOUR";
+ public static final String DEFAULT_COLOUR_NUC = "DEFAULT_COLOUR_NUC";
+
public static final String DEFAULT_COLOUR_PROT = "DEFAULT_COLOUR_PROT";
- public static final String DEFAULT_COLOUR_NUC = "DEFAULT_COLOUR_NUC";
+ public static final String ENABLE_SPLIT_FRAME = "ENABLE_SPLIT_FRAME";
- public static final String ADD_TEMPFACT_ANN = "ADD_TEMPFACT_ANN";
+ public static final String FIGURE_AUTOIDWIDTH = "FIGURE_AUTOIDWIDTH";
- public static final String ADD_SS_ANN = "ADD_SS_ANN";
+ public static final String FIGURE_FIXEDIDWIDTH = "FIGURE_FIXEDIDWIDTH";
- public static final String USE_RNAVIEW = "USE_RNAVIEW";
+ public static final String FOLLOW_SELECTIONS = "FOLLOW_SELECTIONS";
- public static final String STRUCT_FROM_PDB = "STRUCT_FROM_PDB";
+ public static final String FONT_NAME = "FONT_NAME";
- public static final String STRUCTURE_DISPLAY = "STRUCTURE_DISPLAY";
+ public static final String FONT_SIZE = "FONT_SIZE";
- public static final String CHIMERA_PATH = "CHIMERA_PATH";
+ public static final String FONT_STYLE = "FONT_STYLE";
- public static final String SORT_ALIGNMENT = "SORT_ALIGNMENT";
+ public static final String GAP_COLOUR = "GAP_COLOUR";
- public static final String WRAP_ALIGNMENT = "WRAP_ALIGNMENT";
+ public static final String GAP_SYMBOL = "GAP_SYMBOL";
- public static final String SORT_ANNOTATIONS = "SORT_ANNOTATIONS";
+ public static final String HIDDEN_COLOUR = "HIDDEN_COLOUR";
- public static final String SORT_BY_TREE = "SORT_BY_TREE";
+ public static final String HIDE_INTRONS = "HIDE_INTRONS";
- public static final String SHOW_ANNOTATIONS = "SHOW_ANNOTATIONS";
+ public static final String ID_ITALICS = "ID_ITALICS";
- public static final String SHOW_AUTOCALC_ABOVE = "SHOW_AUTOCALC_ABOVE";
+ public static final String ID_ORG_HOSTURL = "ID_ORG_HOSTURL";
- public static final String SHOW_CONSERVATION = "SHOW_CONSERVATION";
+ public static final String MAP_WITH_SIFTS = "MAP_WITH_SIFTS";
- public static final String SHOW_QUALITY = "SHOW_QUALITY";
+ public static final String NOQUESTIONNAIRES = "NOQUESTIONNAIRES";
- public static final String SHOW_CONSENSUS_HISTOGRAM = "SHOW_CONSENSUS_HISTOGRAM";
+ public static final String NORMALISE_CONSENSUS_LOGO = "NORMALISE_CONSENSUS_LOGO";
+
+ public static final String NORMALISE_LOGO = "NORMALISE_LOGO";
+
+ public static final String PAD_GAPS = "PAD_GAPS";
+
+ public static final String PDB_DOWNLOAD_FORMAT = "PDB_DOWNLOAD_FORMAT";
+
+ public static final String QUESTIONNAIRE = "QUESTIONNAIRE";
+
+ public static final String RELAXEDSEQIDMATCHING = "RELAXEDSEQIDMATCHING";
+
+ public static final String RIGHT_ALIGN_IDS = "RIGHT_ALIGN_IDS";
+
+ public static final String SCALE_PROTEIN_TO_CDNA = "SCALE_PROTEIN_TO_CDNA";
+
+ public static final String SHOW_ANNOTATIONS = "SHOW_ANNOTATIONS";
+
+ public static final String SHOW_AUTOCALC_ABOVE = "SHOW_AUTOCALC_ABOVE";
public static final String SHOW_CONSENSUS = "SHOW_CONSENSUS";
+ public static final String SHOW_CONSENSUS_HISTOGRAM = "SHOW_CONSENSUS_HISTOGRAM";
+
public static final String SHOW_CONSENSUS_LOGO = "SHOW_CONSENSUS_LOGO";
+ public static final String SHOW_CONSERVATION = "SHOW_CONSERVATION";
+
+ public static final String SHOW_DBREFS_TOOLTIP = "SHOW_DBREFS_TOOLTIP";
+
public static final String SHOW_GROUP_CONSENSUS = "SHOW_GROUP_CONSENSUS";
public static final String SHOW_GROUP_CONSERVATION = "SHOW_GROUP_CONSERVATION";
- public static final String NORMALISE_CONSENSUS_LOGO = "NORMALISE_CONSENSUS_LOGO";
+ public static final String SHOW_JVSUFFIX = "SHOW_JVSUFFIX";
- public static final String NORMALISE_LOGO = "NORMALISE_LOGO";
+ public static final String SHOW_NPFEATS_TOOLTIP = "SHOW_NPFEATS_TOOLTIP";
public static final String SHOW_OCCUPANCY = "SHOW_OCCUPANCY";
+ public static final String SHOW_OV_HIDDEN_AT_START = "SHOW_OV_HIDDEN_AT_START";
+
public static final String SHOW_OVERVIEW = "SHOW_OVERVIEW";
+ public static final String SHOW_QUALITY = "SHOW_QUALITY";
+
public static final String SHOW_UNCONSERVED = "SHOW_UNCONSERVED";
- public static final String SHOW_OV_HIDDEN_AT_START = "SHOW_OV_HIDDEN_AT_START";
+ public static final String SORT_ALIGNMENT = "SORT_ALIGNMENT";
- public static final String USER_DEFINED_COLOURS = "USER_DEFINED_COLOURS";
+ public static final String SORT_ANNOTATIONS = "SORT_ANNOTATIONS";
+
+ public static final String SORT_BY_TREE = "SORT_BY_TREE";
+
+ public static final String STRUCT_FROM_PDB = "STRUCT_FROM_PDB";
+
+ public static final String STRUCTURE_DISPLAY = "STRUCTURE_DISPLAY";
+
+ public static final String UNIPROT_DOMAIN = "UNIPROT_DOMAIN";
+
+ public static final String USE_FULL_SO = "USE_FULL_SO";
public static final String USE_LEGACY_GAP = "USE_LEGACY_GAP";
- public static final String GAP_COLOUR = "GAP_COLOUR";
+ public static final String USE_RNAVIEW = "USE_RNAVIEW";
+
+ public static final String USER_DEFINED_COLOURS = "USER_DEFINED_COLOURS";
+
+ public static final String WRAP_ALIGNMENT = "WRAP_ALIGNMENT";
- public static final String HIDDEN_COLOUR = "HIDDEN_COLOUR";
private static final int MIN_FONT_SIZE = 1;
public static final List<String> groupURLLinks; // not implemented
+ public static final String BLOSUM62_PCA_FOR_NUCLEOTIDE = "BLOSUM62_PCA_FOR_NUCLEOTIDE";
+
+ public static final String SHOW_IDENTITY = "SHOW_IDENTITY";
+
+ public static final String SHOW_FULLSCREEN = "SHOW_FULLSCREEN";
+
static
{
/*
* Set Visual tab defaults
*/
- seqLimit.setSelected(Cache.getDefault("SHOW_JVSUFFIX", true));
- rightAlign.setSelected(Cache.getDefault("RIGHT_ALIGN_IDS", false));
- fullScreen.setSelected(Cache.getDefault("SHOW_FULLSCREEN", false));
- annotations.setSelected(Cache.getDefault("SHOW_ANNOTATIONS", true));
+ seqLimit.setSelected(Cache.getDefault(SHOW_JVSUFFIX, true));
+ rightAlign.setSelected(Cache.getDefault(RIGHT_ALIGN_IDS, false));
+ fullScreen.setSelected(Cache.getDefault(SHOW_FULLSCREEN, false));
+ annotations.setSelected(Cache.getDefault(SHOW_ANNOTATIONS, true));
conservation.setSelected(Cache.getDefault(SHOW_CONSERVATION, true));
quality.setSelected(Cache.getDefault(SHOW_QUALITY, true));
- identity.setSelected(Cache.getDefault("SHOW_IDENTITY", true));
+ identity.setSelected(Cache.getDefault(SHOW_IDENTITY, true));
openoverv.setSelected(Cache.getDefault(SHOW_OVERVIEW, false));
showUnconserved
.setSelected(Cache.getDefault(SHOW_UNCONSERVED, false));
showConsensLogo
.setSelected(Cache.getDefault(SHOW_CONSENSUS_LOGO, false));
showNpTooltip
- .setSelected(Cache.getDefault("SHOW_NPFEATS_TOOLTIP", true));
+ .setSelected(Cache.getDefault(SHOW_NPFEATS_TOOLTIP, true));
showDbRefTooltip
- .setSelected(Cache.getDefault("SHOW_DBREFS_TOOLTIP", true));
+ .setSelected(Cache.getDefault(SHOW_DBREFS_TOOLTIP, true));
String[] fonts = java.awt.GraphicsEnvironment
.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
fontStyleCB.addItem("bold");
fontStyleCB.addItem("italic");
- fontNameCB.setSelectedItem(Cache.getDefault("FONT_NAME", "SansSerif"));
- fontSizeCB.setSelectedItem(Cache.getDefault("FONT_SIZE", "10"));
+ fontNameCB.setSelectedItem(Cache.getDefault(FONT_NAME, "SansSerif"));
+ fontSizeCB.setSelectedItem(Cache.getDefault(FONT_SIZE, "10"));
fontStyleCB.setSelectedItem(
- Cache.getDefault("FONT_STYLE", Font.PLAIN + ""));
+ Cache.getDefault(FONT_STYLE, Font.PLAIN + ""));
- smoothFont.setSelected(Cache.getDefault("ANTI_ALIAS", false));
+ smoothFont.setSelected(Cache.getDefault(ANTI_ALIAS, false));
scaleProteinToCdna
.setSelected(Cache.getDefault(SCALE_PROTEIN_TO_CDNA, false));
- idItalics.setSelected(Cache.getDefault("ID_ITALICS", true));
+ idItalics.setSelected(Cache.getDefault(ID_ITALICS, true));
- wrap.setSelected(Cache.getDefault("WRAP_ALIGNMENT", false));
+ wrap.setSelected(Cache.getDefault(WRAP_ALIGNMENT, false));
gapSymbolCB.addItem("-");
gapSymbolCB.addItem(".");
- gapSymbolCB.setSelectedItem(Cache.getDefault("GAP_SYMBOL", "-"));
+ gapSymbolCB.setSelectedItem(Cache.getDefault(GAP_SYMBOL, "-"));
sortby.addItem("No sort");
sortby.addItem("Id");
}
});
- if (Cache.getDefault("MAP_WITH_SIFTS", false))
+ if (Cache.getDefault(MAP_WITH_SIFTS, false))
{
siftsMapping.setSelected(true);
}
}
SiftsSettings
- .setMapWithSifts(Cache.getDefault("MAP_WITH_SIFTS", false));
+ .setMapWithSifts(Cache.getDefault(MAP_WITH_SIFTS, false));
/*
* Set Connections tab defaults
setupOutputCombo(epsRendering, "EPS_RENDERING");
setupOutputCombo(htmlRendering, "HTML_RENDERING");
setupOutputCombo(svgRendering, "SVG_RENDERING");
- autoIdWidth.setSelected(Cache.getDefault("FIGURE_AUTOIDWIDTH", false));
+ autoIdWidth.setSelected(Cache.getDefault(FIGURE_AUTOIDWIDTH, false));
userIdWidth.setEnabled(!autoIdWidth.isSelected());
userIdWidthlabel.setEnabled(!autoIdWidth.isSelected());
- Integer wi = Cache.getIntegerProperty("FIGURE_FIXEDIDWIDTH");
+ Integer wi = Cache.getIntegerProperty(FIGURE_FIXEDIDWIDTH);
userIdWidth.setText(wi == null ? "" : wi.toString());
// TODO: refactor to use common enum via FormatAdapter and allow extension
// for new flat file formats
* Set Editing tab defaults
*/
autoCalculateConsCheck
- .setSelected(Cache.getDefault("AUTO_CALC_CONSENSUS", true));
- padGaps.setSelected(Cache.getDefault("PAD_GAPS", false));
+ .setSelected(Cache.getDefault(AUTO_CALC_CONSENSUS, true));
+ padGaps.setSelected(Cache.getDefault(PAD_GAPS, false));
sortByTree.setSelected(Cache.getDefault(SORT_BY_TREE, false));
annotations_actionPerformed(null); // update the display of the annotation
/*
* Save Visual settings
*/
- Cache.setPropertyNoSave("SHOW_JVSUFFIX",
+ Cache.setPropertyNoSave(SHOW_JVSUFFIX,
Boolean.toString(seqLimit.isSelected()));
- Cache.setPropertyNoSave("RIGHT_ALIGN_IDS",
+ Cache.setPropertyNoSave(RIGHT_ALIGN_IDS,
Boolean.toString(rightAlign.isSelected()));
- Cache.setPropertyNoSave("SHOW_FULLSCREEN",
+ Cache.setPropertyNoSave(SHOW_FULLSCREEN,
Boolean.toString(fullScreen.isSelected()));
- Cache.setPropertyNoSave("SHOW_OVERVIEW",
+ Cache.setPropertyNoSave(SHOW_OVERVIEW,
Boolean.toString(openoverv.isSelected()));
- Cache.setPropertyNoSave("SHOW_ANNOTATIONS",
+ Cache.setPropertyNoSave(SHOW_ANNOTATIONS,
Boolean.toString(annotations.isSelected()));
Cache.setPropertyNoSave(SHOW_CONSERVATION,
Boolean.toString(conservation.isSelected()));
Cache.setPropertyNoSave(SHOW_QUALITY,
Boolean.toString(quality.isSelected()));
- Cache.setPropertyNoSave("SHOW_IDENTITY",
+ Cache.setPropertyNoSave(SHOW_IDENTITY,
Boolean.toString(identity.isSelected()));
- Cache.setPropertyNoSave("GAP_SYMBOL",
+ Cache.setPropertyNoSave(GAP_SYMBOL,
gapSymbolCB.getSelectedItem().toString());
- Cache.setPropertyNoSave("FONT_NAME",
+ Cache.setPropertyNoSave(FONT_NAME,
fontNameCB.getSelectedItem().toString());
- Cache.setPropertyNoSave("FONT_STYLE",
+ Cache.setPropertyNoSave(FONT_STYLE,
fontStyleCB.getSelectedItem().toString());
- Cache.setPropertyNoSave("FONT_SIZE",
+ Cache.setPropertyNoSave(FONT_SIZE,
fontSizeCB.getSelectedItem().toString());
- Cache.setPropertyNoSave("ID_ITALICS",
+ Cache.setPropertyNoSave(ID_ITALICS,
Boolean.toString(idItalics.isSelected()));
- Cache.setPropertyNoSave("SHOW_UNCONSERVED",
+ Cache.setPropertyNoSave(SHOW_UNCONSERVED,
Boolean.toString(showUnconserved.isSelected()));
Cache.setPropertyNoSave(SHOW_OCCUPANCY,
Boolean.toString(showOccupancy.isSelected()));
Boolean.toString(showConsensHistogram.isSelected()));
Cache.setPropertyNoSave(SHOW_CONSENSUS_LOGO,
Boolean.toString(showConsensLogo.isSelected()));
- Cache.setPropertyNoSave("ANTI_ALIAS",
+ Cache.setPropertyNoSave(ANTI_ALIAS,
Boolean.toString(smoothFont.isSelected()));
Cache.setPropertyNoSave(SCALE_PROTEIN_TO_CDNA,
Boolean.toString(scaleProteinToCdna.isSelected()));
- Cache.setPropertyNoSave("SHOW_NPFEATS_TOOLTIP",
+ Cache.setPropertyNoSave(SHOW_NPFEATS_TOOLTIP,
Boolean.toString(showNpTooltip.isSelected()));
- Cache.setPropertyNoSave("SHOW_DBREFS_TOOLTIP",
+ Cache.setPropertyNoSave(SHOW_DBREFS_TOOLTIP,
Boolean.toString(showDbRefTooltip.isSelected()));
- Cache.setPropertyNoSave("WRAP_ALIGNMENT",
+ Cache.setPropertyNoSave(WRAP_ALIGNMENT,
Boolean.toString(wrap.isSelected()));
Cache.setPropertyNoSave("STARTUP_FILE",
Cache.setPropertyNoSave(STRUCTURE_DISPLAY,
structViewer.getSelectedItem().toString());
Cache.setOrRemove(CHIMERA_PATH, chimeraPath.getText());
- Cache.setPropertyNoSave("MAP_WITH_SIFTS",
+ Cache.setPropertyNoSave(MAP_WITH_SIFTS,
Boolean.toString(siftsMapping.isSelected()));
SiftsSettings.setMapWithSifts(siftsMapping.isSelected());
Boolean.toString(modellerOutput.isSelected()));
Cache.setPropertyNoSave("EXPORT_EMBBED_BIOJSON",
Boolean.toString(embbedBioJSON.isSelected()));
- Cache.setPropertyNoSave("FIGURE_AUTOIDWIDTH",
+ Cache.setPropertyNoSave(FIGURE_AUTOIDWIDTH,
Boolean.toString(autoIdWidth.isSelected()));
userIdWidth_actionPerformed();
Cache.setPropertyNoSave("FIGURE_FIXEDIDWIDTH",
/*
* Save Editing settings
*/
- Cache.setPropertyNoSave("AUTO_CALC_CONSENSUS",
+ Cache.setPropertyNoSave(AUTO_CALC_CONSENSUS,
Boolean.toString(autoCalculateConsCheck.isSelected()));
- Cache.setPropertyNoSave("SORT_BY_TREE",
+ Cache.setPropertyNoSave(SORT_BY_TREE,
Boolean.toString(sortByTree.isSelected()));
- Cache.setPropertyNoSave("PAD_GAPS",
+ Cache.setPropertyNoSave(PAD_GAPS,
Boolean.toString(padGaps.isSelected()));
if (!Platform.isJS())
Cache.setPropertyNoSave(SHOW_CONSERVATION, "true");
Cache.setPropertyNoSave(SHOW_QUALITY, "false");
Cache.setPropertyNoSave(SHOW_CONSENSUS, "true");
- Cache.setPropertyNoSave("SHOW_UNCONSERVED", "false");
- Cache.setPropertyNoSave("SHOW_GROUP_CONSERVATION", "false");
- Cache.setPropertyNoSave("SHOW_GROUP_CONCENSUS", "false");
+ Cache.setPropertyNoSave(SHOW_UNCONSERVED, "false");
+ Cache.setPropertyNoSave(SHOW_GROUP_CONSERVATION, "false");
+ Cache.setPropertyNoSave(SHOW_GROUP_CONSENSUS, "false");
// TODO -- just a start here
}