Java Code Examples for org.eclipse.jface.dialogs.ControlEnableState#disable()
The following examples show how to use
org.eclipse.jface.dialogs.ControlEnableState#disable() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OptionsConfigurationBlock.java From birt with Eclipse Public License 1.0 | 6 votes |
protected void updateCheckBox( Button curr ) { ControlData data = (ControlData) curr.getData( ); String currValue = getValue( data.getKey( ) ); curr.setSelection( data.getSelection( currValue ) == 0 ); if ( fProject != null ) { if ( ignoreKeys != null && Arrays.asList( ignoreKeys ).contains( data.getKey( ) ) ) { ControlEnableState.disable( curr ); } } }
Example 2
Source File: OptionsConfigurationBlock.java From birt with Eclipse Public License 1.0 | 6 votes |
protected void updateCombo( Combo curr ) { ControlData data = (ControlData) curr.getData( ); String currValue = getValue( data.getKey( ) ); curr.select( data.getSelection( currValue ) ); if ( fProject != null ) { if ( ignoreKeys != null && Arrays.asList( ignoreKeys ).contains( data.getKey( ) ) ) { ControlEnableState.disable( curr ); Control label = (Control) fLabels.get( curr ); if ( label != null ) ControlEnableState.disable( label ); } } }
Example 3
Source File: CleanUpSaveParticipantPreferenceConfiguration.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 6 votes |
/** * {@inheritDoc} */ @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); } }
Example 4
Source File: PropertyAndPreferencePage.java From birt with Eclipse Public License 1.0 | 6 votes |
protected void enablePreferenceContent( boolean enable ) { if ( enable ) { if ( fBlockEnableState != null ) { fBlockEnableState.restore( ); fBlockEnableState = null; } } else { if ( fBlockEnableState == null ) { fBlockEnableState = ControlEnableState.disable( fConfigurationBlockControl ); } } }
Example 5
Source File: PropertyAndPreferenceFieldEditorPage.java From APICloud-Studio with GNU General Public License v3.0 | 6 votes |
protected void enablePreferenceContent(boolean enable) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState = null; } } else { if (fBlockEnableState == null) { fBlockEnableState = ControlEnableState.disable(fConfigurationBlockControl); } } }
Example 6
Source File: OptionsConfigurationBlock.java From birt with Eclipse Public License 1.0 | 6 votes |
protected void updateText( Text curr ) { Key key = (Key) curr.getData( ); String currValue = getValue( key ); if ( currValue != null ) { curr.setText( currValue ); } if ( fProject != null ) { if ( ignoreKeys != null && Arrays.asList( ignoreKeys ).contains( key ) ) { ControlEnableState.disable( curr ); Control label = (Control) fLabels.get( curr ); if ( label != null ) ControlEnableState.disable( label ); } } }
Example 7
Source File: TextMateConfigurationBlock.java From typescript.java with MIT License | 5 votes |
public void enablePreferenceContent(boolean enable) { if (controlsComposite != null && !controlsComposite.isDisposed()) { if (enable) { if (blockEnableState != null) { blockEnableState.restore(); blockEnableState = null; } } else { if (blockEnableState == null) { blockEnableState = ControlEnableState.disable(controlsComposite); } } } }
Example 8
Source File: CodeLensConfigurationBlock.java From typescript.java with MIT License | 5 votes |
public void enablePreferenceContent(boolean enable) { if (controlsComposite != null && !controlsComposite.isDisposed()) { if (enable) { if (blockEnableState != null) { blockEnableState.restore(); blockEnableState = null; } } else { if (blockEnableState == null) { blockEnableState = ControlEnableState.disable(controlsComposite); } } } }
Example 9
Source File: FormatterConfigurationBlock.java From typescript.java with MIT License | 5 votes |
public void enablePreferenceContent(boolean enable) { if (controlsComposite != null && !controlsComposite.isDisposed()) { if (enable) { if (blockEnableState != null) { blockEnableState.restore(); blockEnableState = null; } } else { if (blockEnableState == null) { blockEnableState = ControlEnableState.disable(controlsComposite); } } } }
Example 10
Source File: NodejsConfigurationBlock.java From typescript.java with MIT License | 5 votes |
public void enablePreferenceContent(boolean enable) { if (controlsComposite != null && !controlsComposite.isDisposed()) { if (enable) { if (blockEnableState != null) { blockEnableState.restore(); blockEnableState = null; } } else { if (blockEnableState == null) { blockEnableState = ControlEnableState.disable(controlsComposite); } } } }
Example 11
Source File: SaveActionsConfigurationBlock.java From typescript.java with MIT License | 5 votes |
public void enablePreferenceContent(boolean enable) { if (controlsComposite != null && !controlsComposite.isDisposed()) { if (enable) { if (blockEnableState != null) { blockEnableState.restore(); blockEnableState = null; } } else { if (blockEnableState == null) { blockEnableState = ControlEnableState.disable(controlsComposite); } } } }
Example 12
Source File: AbstractN4JSPreferencePage.java From n4js with Eclipse Public License 1.0 | 5 votes |
/** copied from PropertyAndPreferencePage */ protected void enablePreferenceContent(boolean enable) { if (enable) { if (blockEnableState != null) { blockEnableState.restore(); blockEnableState = null; } } else { if (blockEnableState == null) { blockEnableState = ControlEnableState.disable(configurationBlockControl); } } }
Example 13
Source File: TSLintWizardPage.java From typescript.java with MIT License | 5 votes |
protected void enableTslintContent(boolean enable) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState = null; } } else { if (fBlockEnableState == null) { fBlockEnableState = ControlEnableState.disable(controlsComposite); } } }
Example 14
Source File: ATAConfigurationBlock.java From typescript.java with MIT License | 5 votes |
public void enablePreferenceContent(boolean enable) { if (controlsComposite != null && !controlsComposite.isDisposed()) { if (enable) { if (blockEnableState != null) { blockEnableState.restore(); blockEnableState = null; } } else { if (blockEnableState == null) { blockEnableState = ControlEnableState.disable(controlsComposite); } } } }
Example 15
Source File: JavadocProblemsConfigurationBlock.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
protected void enableConfigControls(boolean enable) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState= null; } } else { if (fBlockEnableState == null) { fBlockEnableState= ControlEnableState.disable(fJavadocComposite); } } }
Example 16
Source File: PropertyAndPreferencePage.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
protected void enablePreferenceContent(boolean enable) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState= null; } } else { if (fBlockEnableState == null) { fBlockEnableState= ControlEnableState.disable(fConfigurationBlockControl); } } }
Example 17
Source File: ComplianceConfigurationBlock.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
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); } } } }
Example 18
Source File: PropertyAndPreferencePage.java From typescript.java with MIT License | 5 votes |
protected void enablePreferenceContent(boolean enable) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState = null; } } else { if (fBlockEnableState == null) { fBlockEnableState = ControlEnableState.disable(fConfigurationBlockControl); } } }
Example 19
Source File: CleanUpRefactoringWizard.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
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); }
Example 20
Source File: PropertyAndPreferencePage.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
protected void enablePreferenceContent(boolean enable) { if (enable) { if (blockEnableState != null) { blockEnableState.restore(); blockEnableState = null; } } else { if (blockEnableState == null) { blockEnableState = ControlEnableState.disable(configurationBlockControl); } } }