public boolean activeOnStdout() { if (fStdOut == null || !fStdOut.isChecked()) { return false; } return true; }
private void update() { IPreferenceStore store = getPreferenceStore(); if (store.getBoolean(getKey())) { // on setChecked(true); } else { // off setChecked(false); } }
/** * Constructs an action to toggle console auto activation preferences */ public ShowWhenContentChangesAction(String name) { super(name, IAction.AS_CHECK_BOX); setToolTipText(name); getPreferenceStore().addPropertyChangeListener(this); update(); }
@Override public void run() { IPreferenceStore store = getPreferenceStore(); boolean show = isChecked(); store.removePropertyChangeListener(this); store.setValue(getKey(), show); store.addPropertyChangeListener(this); }
/** * Must be called to dispose this action. */ public void dispose() { getPreferenceStore().removePropertyChangeListener(this); }
@Override public void dispose() { DebugUITools.getDebugContextManager().getContextService(fPage.getSite().getWorkbenchWindow()).removeDebugContextListener(this); DebugPlugin.getDefault().removeDebugEventListener(this); if (fRemoveTerminated != null) { fRemoveTerminated.dispose(); fRemoveTerminated = null; } if (fRemoveAllTerminated != null) { fRemoveAllTerminated.dispose(); fRemoveAllTerminated = null; } if (fTerminate != null) { fTerminate.dispose(); fTerminate = null; } if (fStdOut != null) { fStdOut.dispose(); fStdOut = null; } if (fStdErr != null) { fStdErr.dispose(); fStdErr = null; } fConsole = null; }
public boolean activeOnStderr() { if (fStdErr == null || !fStdErr.isChecked()) { return false; } return true; }