}
});
- colourMenu.addMenuListener(new MenuListener()
- {
-
- @Override
- public void menuSelected(MenuEvent arg0)
- {
-
- handlingGuiEvents=true;
- }
-
- @Override
- public void menuDeselected(MenuEvent arg0)
- {
- handlingGuiEvents=false;
- }
-
- @Override
- public void menuCanceled(MenuEvent arg0)
- {
- handlingGuiEvents=false;
- }
- });
}
-
IProgressIndicator progressBar = null;
public AppJmol(PDBEntry pdbentry, SequenceI[] seq, String[] chains,
*/
private boolean _started = false;
- /**
- * state flag indicating if the GUI is active when a particular button event
- * takes place (e.g. when a stateChange occurs on a checkbox - this could be
- * programmatic or due to the user doing something)
- */
- private boolean handlingGuiEvents=false;
-
public void run()
{
_started = true;
}
if (jmb.isColourBySequence())
{
- if (!jmb.isLoadingFromArchive() && handlingGuiEvents)
+ if (!jmb.isLoadingFromArchive())
{
if (ap!=null) {
// Make the currently displayed alignment panel the associated view