当前位置: 首页>>代码示例>>Java>>正文


Java ControlEnableState类代码示例

本文整理汇总了Java中org.eclipse.jface.dialogs.ControlEnableState的典型用法代码示例。如果您正苦于以下问题:Java ControlEnableState类的具体用法?Java ControlEnableState怎么用?Java ControlEnableState使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ControlEnableState类属于org.eclipse.jface.dialogs包,在下文中一共展示了ControlEnableState类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: enablePreferenceContent

import org.eclipse.jface.dialogs.ControlEnableState; //导入依赖的package包/类
protected void enablePreferenceContent(boolean enable)
{
	if (enable)
	{
		if (fBlockEnableState != null)
		{
			fBlockEnableState.restore();
			fBlockEnableState = null;
		}
	}
	else
	{
		if (fBlockEnableState == null)
		{
			fBlockEnableState = ControlEnableState.disable(fConfigurationBlockControl);
		}
	}
}
 
开发者ID:apicloudcom,项目名称:APICloud-Studio,代码行数:19,代码来源:PropertyAndPreferenceFieldEditorPage.java

示例2: enabled

import org.eclipse.jface.dialogs.ControlEnableState; //导入依赖的package包/类
/**
 * {@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);
	}
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:19,代码来源:CleanUpSaveParticipantPreferenceConfiguration.java

示例3: updateCombo

import org.eclipse.jface.dialogs.ControlEnableState; //导入依赖的package包/类
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 );
		}
	}
}
 
开发者ID:eclipse,项目名称:birt,代码行数:20,代码来源:OptionsConfigurationBlock.java

示例4: updateCheckBox

import org.eclipse.jface.dialogs.ControlEnableState; //导入依赖的package包/类
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 );
		}
	}
}
 
开发者ID:eclipse,项目名称:birt,代码行数:17,代码来源:OptionsConfigurationBlock.java

示例5: updateRadioComposite

import org.eclipse.jface.dialogs.ControlEnableState; //导入依赖的package包/类
protected void updateRadioComposite( RadioComposite curr )
{
	ControlData data = (ControlData) curr.getData( );

	String currValue = getValue( data.getKey( ) );
	curr.setSelection( data.getSelection( currValue ) );

	if ( fProject != null )
	{
		if ( ignoreKeys != null
				&& Arrays.asList( ignoreKeys ).contains( data.getKey( ) ) )
		{
			ControlEnableState.disable( curr );
		}
	}
}
 
开发者ID:eclipse,项目名称:birt,代码行数:17,代码来源:OptionsConfigurationBlock.java

示例6: updateText

import org.eclipse.jface.dialogs.ControlEnableState; //导入依赖的package包/类
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 );
		}
	}
}
 
开发者ID:eclipse,项目名称:birt,代码行数:23,代码来源:OptionsConfigurationBlock.java

示例7: enablePreferenceContent

import org.eclipse.jface.dialogs.ControlEnableState; //导入依赖的package包/类
protected void enablePreferenceContent( boolean enable )
{
	if ( enable )
	{
		if ( fBlockEnableState != null )
		{
			fBlockEnableState.restore( );
			fBlockEnableState = null;
		}
	}
	else
	{
		if ( fBlockEnableState == null )
		{
			fBlockEnableState = ControlEnableState.disable( fConfigurationBlockControl );
		}
	}
}
 
开发者ID:eclipse,项目名称:birt,代码行数:19,代码来源:PropertyAndPreferencePage.java

示例8: enablePreferenceContent

import org.eclipse.jface.dialogs.ControlEnableState; //导入依赖的package包/类
/** 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);
		}
	}
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:14,代码来源:AbstractN4JSPreferencePage.java

示例9: enablePreferenceContent

import org.eclipse.jface.dialogs.ControlEnableState; //导入依赖的package包/类
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);
			}
		}
	}
}
 
开发者ID:angelozerr,项目名称:angular-eclipse,代码行数:15,代码来源:AngularCLIConfigurationBlock.java

示例10: enablePreferenceContent

import org.eclipse.jface.dialogs.ControlEnableState; //导入依赖的package包/类
protected void enablePreferenceContent(boolean enable) {
	if (enable) {
		if (fBlockEnableState != null) {
			fBlockEnableState.restore();
			fBlockEnableState = null;
		}
	} else {
		if (fBlockEnableState == null) {
			fBlockEnableState = ControlEnableState.disable(fConfigurationBlockControl);
		}
	}
}
 
开发者ID:angelozerr,项目名称:typescript.java,代码行数:13,代码来源:PropertyAndPreferencePage.java

示例11: reconcileControls

import org.eclipse.jface.dialogs.ControlEnableState; //导入依赖的package包/类
@Override
protected void reconcileControls() {
	if (saveActionsButton.getSelection()) {
		if (saveActionsContainerEnableState != null) {
			saveActionsContainerEnableState.restore();
			saveActionsContainerEnableState = null;
		}
	} else {
		if (saveActionsContainerEnableState == null) {
			saveActionsContainerEnableState = ControlEnableState.disable(saveActionsContainer);
		}
	}
}
 
开发者ID:angelozerr,项目名称:typescript.java,代码行数:14,代码来源:SaveActionsConfigurationBlock.java

示例12: enableTslintContent

import org.eclipse.jface.dialogs.ControlEnableState; //导入依赖的package包/类
protected void enableTslintContent(boolean enable) {
	if (enable) {
		if (fBlockEnableState != null) {
			fBlockEnableState.restore();
			fBlockEnableState = null;
		}
	} else {
		if (fBlockEnableState == null) {
			fBlockEnableState = ControlEnableState.disable(controlsComposite);
		}
	}
}
 
开发者ID:angelozerr,项目名称:typescript.java,代码行数:13,代码来源:TSLintWizardPage.java

示例13: enablePreferenceContent

import org.eclipse.jface.dialogs.ControlEnableState; //导入依赖的package包/类
protected void enablePreferenceContent(boolean enable) {
	if (enable) {
		if (blockEnableState != null) {
			blockEnableState.restore();
			blockEnableState = null;
		}
	} else {
		if (blockEnableState == null) {
			blockEnableState = ControlEnableState.disable(configurationBlockControl);
		}
	}
}
 
开发者ID:cplutte,项目名称:bts,代码行数:13,代码来源:PropertyAndPreferencePage.java

示例14: handleSyntaxSeveritySelection

import org.eclipse.jface.dialogs.ControlEnableState; //导入依赖的package包/类
private void handleSyntaxSeveritySelection(boolean selection) {
	if (selection) {
		if (fSyntaxState != null) {
			fSyntaxState.restore();
			fSyntaxState = null;
		}
	} else {
		if (fSyntaxState == null)
			fSyntaxState = ControlEnableState
					.disable(fSyntaxValidationGroup);
	}
}
 
开发者ID:angelozerr,项目名称:eclipse-wtp-json,代码行数:13,代码来源:JSONValidatorPreferencePage.java

示例15: restoreUIState

import org.eclipse.jface.dialogs.ControlEnableState; //导入依赖的package包/类
/**
 * Restores the enabled/disabled state of the wizard dialog's buttons and
 * the tree of controls for the currently showing page.
 * 
 * @param state
 *            a map containing the saved state as returned by
 *            <code>saveUIState</code>
 * @see #saveUIState
 */
private void restoreUIState(Map state) {
	restoreEnableState(backButton, state, "back"); //$NON-NLS-1$
	restoreEnableState(nextButton, state, "next"); //$NON-NLS-1$
	restoreEnableState(finishButton, state, "finish"); //$NON-NLS-1$
	restoreEnableState(cancelButton, state, "cancel"); //$NON-NLS-1$
	restoreEnableState(helpButton, state, "help"); //$NON-NLS-1$
	Object pageValue = state.get("page"); //$NON-NLS-1$
	if (pageValue != null) {
		((ControlEnableState) pageValue).restore();
	}
}
 
开发者ID:MentorEmbedded,项目名称:p2-installer,代码行数:21,代码来源:WizardDialog.java


注:本文中的org.eclipse.jface.dialogs.ControlEnableState类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。