package jalview.gui;
import jalview.api.structures.JalviewStructureDisplayI;
+import jalview.bin.Cache;
import jalview.bin.Jalview;
import jalview.datamodel.DBRefEntry;
import jalview.datamodel.DBRefSource;
progressBar = new ProgressBar(this.statusPanel, this.statusBar);
}
+ chk_superpose.setSelected(Cache.getDefault("AUTOSUPERIMPOSE", true));
+
// ensure a filter option is in force for search
populateFilterComboBox(true, cachedPDBExists);
Thread discoverPDBStructuresThread = new Thread(new Runnable()
return foundEntry;
}
+ /**
+ * @param ssm
+ * @return targetted structure view (new or existing) configured according to
+ * superpose checkbox
+ */
public StructureViewer getTargetedStructureViewer(
StructureSelectionManager ssm)
{
Object _sv = targetView.getSelectedItem();
-
+ StructureViewer sv;
if (_sv == null)
{
- return new StructureViewer(ssm);
+ sv = new StructureViewer(ssm);
} else {
- return (StructureViewer) _sv;
+ sv = (StructureViewer) _sv;
}
+ sv.setSuperpose(chk_superpose.isSelected());
+ return sv;
}
private StructureViewer launchStructureViewer(
StructureSelectionManager ssm,
setProgressBar(MessageManager
.getString("status.launching_3d_structure_viewer"), progressId);
final StructureViewer sViewer = getTargetedStructureViewer(ssm);
+ sViewer.setSuperpose(chk_superpose.isSelected());
setProgressBar(null, progressId);
if (SiftsSettings.isMapWithSifts())
protected JButton btn_pdbFromFile = new JButton();
+ protected JCheckBox chk_superpose = new JCheckBox(
+ MessageManager.getString("label.superpose_structures"));
+
protected JTextField txt_search = new JTextField(14);
private JPanel pnl_actions = new JPanel(new MigLayout());
pnl_actions.add(chk_rememberSettings);
pnl_actions.add(btn_view);
pnl_actions.add(btn_cancel);
+ pnl_actions.add(chk_superpose, "left");
// pnl_filter.add(lbl_result);
pnl_main.add(cmb_filterOption);