本文整理汇总了Java中org.eclipse.jface.dialogs.ControlEnableState.disable方法的典型用法代码示例。如果您正苦于以下问题:Java ControlEnableState.disable方法的具体用法?Java ControlEnableState.disable怎么用?Java ControlEnableState.disable使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jface.dialogs.ControlEnableState
的用法示例。
在下文中一共展示了ControlEnableState.disable方法的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);
}
}
}
示例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 );
}
}
}
示例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 );
}
}
}
示例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 );
}
}
}
示例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 );
}
}
}
示例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 );
}
}
}
示例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);
}
}
}
示例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);
}
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
示例15: enableConfigControls
import org.eclipse.jface.dialogs.ControlEnableState; //导入方法依赖的package包/类
protected void enableConfigControls(boolean enable) {
if (enable) {
if (fBlockEnableState != null) {
fBlockEnableState.restore();
fBlockEnableState= null;
}
} else {
if (fBlockEnableState == null) {
fBlockEnableState= ControlEnableState.disable(fJavadocComposite);
}
}
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:13,代码来源:JavadocProblemsConfigurationBlock.java