boolean showSSAnnotations, boolean showAnnotations,
boolean hideTFrows)
{
- Console.debug(
- "##### Setting showSSAnnotations to " + showSSAnnotations);
- Console.debug("##### Setting showAnnotations to " + showAnnotations);
- Console.debug("##### Setting hideTFrows to " + hideTFrows);
- af.setAnnotationsVisibility(showSSAnnotations, true, false);
-
- af.setAnnotationsVisibility(showAnnotations, false, true);
+ af.setAnnotationsVisibility(true, showSSAnnotations, showAnnotations);
// show temperature factor annotations?
if (hideTFrows)
// configure services
StructureSelectionManager ssm = StructureSelectionManager
.getStructureSelectionManager(this);
- if (Cache.getDefault(Preferences.ADD_SS_ANN, true))
- {
- ssm.setAddTempFacAnnot(
- Cache.getDefault(Preferences.ADD_TEMPFACT_ANN, true));
- ssm.setProcessSecondaryStructure(
- Cache.getDefault(Preferences.STRUCT_FROM_PDB, true));
- // JAL-3915 - RNAView is no longer an option so this has no effect
- ssm.setSecStructServices(
- Cache.getDefault(Preferences.USE_RNAVIEW, false));
- }
- else
- {
- ssm.setAddTempFacAnnot(false);
- ssm.setProcessSecondaryStructure(false);
- ssm.setSecStructServices(false);
- }
+ StructureSelectionManager.doConfigureStructurePrefs(ssm);
}
public void checkForNews()
if (ssm == null)
{
ssm = ap.getStructureSelectionManager();
+ StructureSelectionManager.doConfigureStructurePrefs(ssm);
}
PDBEntry fileEntry = new AssociatePdbFileWithSeq().associatePdbWithSeq(
import jalview.analysis.AlignSeq;
import jalview.api.StructureSelectionManagerProvider;
+import jalview.bin.Cache;
import jalview.bin.Console;
import jalview.commands.CommandI;
import jalview.commands.EditCommand;
import jalview.datamodel.SequenceI;
import jalview.ext.jmol.JmolParser;
import jalview.gui.IProgressIndicator;
+import jalview.gui.Preferences;
import jalview.io.AppletFormatAdapter;
import jalview.io.DataSourceType;
import jalview.io.StructureFile;
return pdbIdFileName;
}
+ public static void doConfigureStructurePrefs(
+ StructureSelectionManager ssm)
+ {
+ if (Cache.getDefault(Preferences.ADD_SS_ANN, true))
+ {
+ ssm.setAddTempFacAnnot(
+ Cache.getDefault(Preferences.ADD_TEMPFACT_ANN, true));
+ ssm.setProcessSecondaryStructure(
+ Cache.getDefault(Preferences.STRUCT_FROM_PDB, true));
+ // JAL-3915 - RNAView is no longer an option so this has no effect
+ ssm.setSecStructServices(
+ Cache.getDefault(Preferences.USE_RNAVIEW, false));
+ }
+ else
+ {
+ ssm.setAddTempFacAnnot(false);
+ ssm.setProcessSecondaryStructure(false);
+ ssm.setSecStructServices(false);
+ }
+ }
+
}