protected void enableConfigControls(boolean enable) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState= null; } } else { if (fBlockEnableState == null) { fBlockEnableState= ControlEnableState.disable(fJavadocComposite); } } }
protected void enablePreferenceContent(boolean enable) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState= null; } } else { if (fBlockEnableState == null) { fBlockEnableState= ControlEnableState.disable(fConfigurationBlockControl); } } }
protected void enableConfigControls(boolean enable) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState= null; } } else { if (fBlockEnableState == null) { fBlockEnableState= ControlEnableState.disable(fJavadocComposite); } } }
protected void enableConfigControls(boolean enable) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState= null; } } else { if (fBlockEnableState == null) { fBlockEnableState= ControlEnableState.disable(fJavadocComposite); } } }
protected void enablePreferenceContent(boolean enable) { if (enable) { if (blockEnableState != null) { blockEnableState.restore(); blockEnableState = null; } } else { if (blockEnableState == null) { blockEnableState = ControlEnableState.disable(configurationBlockControl); } } }
@Override protected void enabled(boolean isEnabled) { if (isEnabled) { if (fControlEnableState == null) return; fControlEnableState.restore(); fControlEnableState= null; } else { if (fControlEnableState != null) return; fControlEnableState= ControlEnableState.disable(fCleanUpOptionsComposite); } }
protected void enablePreferenceContent(boolean enable) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState= null; } } else { if (fBlockEnableState == null) { fBlockEnableState= ControlEnableState.disable(fConfigurationBlockControl); } } }
protected void enablePreferenceContent(boolean enable) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState= null; } } else { if (fBlockEnableState == null) { fBlockEnableState= ControlEnableState.disable(fConfigurationBlockControl); } } }
@Override protected void enabled(boolean isEnabled) { if (isEnabled) { if (fControlEnableState == null) return; fControlEnableState.restore(); fControlEnableState= null; } else { if (fControlEnableState != null) return; fControlEnableState= ControlEnableState.disable(fCleanUpOptionsComposite); } }
private HashMap saveUIState(boolean keepCancelEnabled) { HashMap savedState= new HashMap(10); saveEnableStateAndSet(fCancelButton, savedState, keepCancelEnabled); for (Iterator actionButtons = fActionButtons.iterator(); actionButtons.hasNext(); ) { Button button = (Button) actionButtons.next(); saveEnableStateAndSet(button, savedState, false); } savedState.put("tabForm", ControlEnableState.disable(fContents)); //$NON-NLS-1$ return savedState; }
private HashMap<Object, Object> saveUIState(boolean keepCancelEnabled) { HashMap<Object, Object> savedState= new HashMap<>(10); saveEnableStateAndSet(fCancelButton, savedState, keepCancelEnabled); for (Button button : fActionButtons) { saveEnableStateAndSet(button, savedState, false); } savedState.put("tabForm", ControlEnableState.disable(fContents)); //$NON-NLS-1$ return savedState; }
public void enablePreferenceContent(boolean enable) { if (fControlsComposite != null && !fControlsComposite.isDisposed()) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState= null; } } else { if (fBlockEnableState == null) { fBlockEnableState= ControlEnableState.disable(fControlsComposite); } } } }
public void enablePreferenceContent(boolean enable) { if (fControlsComposite != null && !fControlsComposite.isDisposed()) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState= null; } } else { if (fBlockEnableState == null) { fBlockEnableState= ControlEnableState.disable(fControlsComposite); } } } }
public void enablePreferenceContent(boolean enable) { if (fControlsComposite != null && !fControlsComposite.isDisposed()) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState= null; } } else { if (fBlockEnableState == null) { fBlockEnableState= ControlEnableState.disable(fControlsComposite); } } } }
/** * {@inheritDoc} */ public void initialize(final IScopeContext context, IAdaptable element) { boolean enabled= isEnabled(context); fEnableField.setSelection(enabled); if (fConfigControl != null && !enabled) { fConfigControlEnabledState= ControlEnableState.disable(fConfigControl); } fEnableField.setDialogFieldListener(new IDialogFieldListener() { public void dialogFieldChanged(DialogField field) { enableConfigControl(fEnableField.isSelected()); } }); fContext= context; }
private void updateEnableState(boolean isCustom, final ListDialogField settingsField, Button configureCustom, BulletListBlock bulletListBlock) { settingsField.getListControl(null).setEnabled(!isCustom); if (isCustom) { fEnableState= ControlEnableState.disable(settingsField.getButtonBox(null)); } else if (fEnableState != null) { fEnableState.restore(); fEnableState= null; } bulletListBlock.setEnabled(isCustom); configureCustom.setEnabled(isCustom); }
private void updateEnableState(boolean isCustom, final ListDialogField<IJavaProject> settingsField, Button configureCustom, BulletListBlock bulletListBlock) { settingsField.getListControl(null).setEnabled(!isCustom); if (isCustom) { fEnableState= ControlEnableState.disable(settingsField.getButtonBox(null)); } else if (fEnableState != null) { fEnableState.restore(); fEnableState= null; } bulletListBlock.setEnabled(isCustom); configureCustom.setEnabled(isCustom); }
private void updateEnableState(boolean isCustom, final ListDialogField<IJavaProject> settingsField, Button configureCustom, BulletListBlock bulletListBlock) { settingsField.getListControl(null).setEnabled(!isCustom); if (isCustom) { fEnableState= ControlEnableState.disable(settingsField.getButtonBox(null)); } else if (fEnableState != null) { fEnableState.restore(); fEnableState= null; } bulletListBlock.setEnabled(isCustom); configureCustom.setEnabled(isCustom); }
protected void enableConfigControl(boolean isEnabled) { fContext.getNode(JavaUI.ID_PLUGIN).putBoolean(getPreferenceKey(), isEnabled); if (fConfigControl != null) { if (fConfigControlEnabledState != null) { fConfigControlEnabledState.restore(); fConfigControlEnabledState= null; } else { fConfigControlEnabledState= ControlEnableState.disable(fConfigControl); } } }
private Map saveUIState(boolean keepCancelEnabled) { Map savedState= new HashMap(10); saveEnableStateAndSet(getButton(PREVIEW_ID), savedState, "preview", false); //$NON-NLS-1$ saveEnableStateAndSet(getButton(IDialogConstants.OK_ID), savedState, "ok", false); //$NON-NLS-1$ saveEnableStateAndSet(getButton(IDialogConstants.BACK_ID), savedState, "back", false); //$NON-NLS-1$ saveEnableStateAndSet(getButton(IDialogConstants.NEXT_ID), savedState, "next", false); //$NON-NLS-1$ saveEnableStateAndSet(getButton(IDialogConstants.CANCEL_ID), savedState, "cancel", keepCancelEnabled); //$NON-NLS-1$ savedState.put("page", ControlEnableState.disable(fVisiblePage.getControl())); //$NON-NLS-1$ return savedState; }