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


Java Enumerator类代码示例

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


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

示例1: setTransmMode

import org.eclipse.emf.common.util.Enumerator; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.polarsys.time4sys.ui.srm.parts.TimingPropertiesEditionPart#setTransmMode(Enumerator
 *      newValue)
 * 
 */
public void setTransmMode(Enumerator newValue) {
	transmMode.modelUpdating(new StructuredSelection(newValue));
	boolean eefElementEditorReadOnlyState = isReadOnly(SrmViewsRepository.Timing.Properties.transmMode);
	if (eefElementEditorReadOnlyState && transmMode.isEnabled()) {
		transmMode.setEnabled(false);
		transmMode.setToolTipText(SrmMessages.Timing_ReadOnly);
	} else if (!eefElementEditorReadOnlyState && !transmMode.isEnabled()) {
		transmMode.setEnabled(true);
	}

}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:19,代码来源:TimingPropertiesEditionPartForm.java

示例2: initMessageQueuePolicy

import org.eclipse.emf.common.util.Enumerator; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.polarsys.time4sys.ui.srm.parts.TimingPropertiesEditionPart#initMessageQueuePolicy(Object
 *      input, Enumerator current)
 */
public void initMessageQueuePolicy(Object input, Enumerator current) {
	messageQueuePolicy.setInput(input);
	messageQueuePolicy.modelUpdating(new StructuredSelection(current));
	boolean eefElementEditorReadOnlyState = isReadOnly(SrmViewsRepository.Timing.Properties.messageQueuePolicy);
	if (eefElementEditorReadOnlyState && messageQueuePolicy.isEnabled()) {
		messageQueuePolicy.setEnabled(false);
		messageQueuePolicy.setToolTipText(SrmMessages.Timing_ReadOnly);
	} else if (!eefElementEditorReadOnlyState && !messageQueuePolicy.isEnabled()) {
		messageQueuePolicy.setEnabled(true);
	}

}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:19,代码来源:TimingPropertiesEditionPartImpl.java

示例3: setDirection

import org.eclipse.emf.common.util.Enumerator; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.polarsys.time4sys.ui.hrm.parts.OtherPropertiesEditionPart#setDirection(Enumerator
 *      newValue)
 * 
 */
public void setDirection(Enumerator newValue) {
	direction.modelUpdating(new StructuredSelection(newValue));
	boolean eefElementEditorReadOnlyState = isReadOnly(HrmViewsRepository.Other.Properties.direction);
	if (eefElementEditorReadOnlyState && direction.isEnabled()) {
		direction.setEnabled(false);
		direction.setToolTipText(HrmMessages.Other_ReadOnly);
	} else if (!eefElementEditorReadOnlyState && !direction.isEnabled()) {
		direction.setEnabled(true);
	}

}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:19,代码来源:OtherPropertiesEditionPartImpl.java

示例4: initType

import org.eclipse.emf.common.util.Enumerator; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.polarsys.time4sys.ui.hrm.parts.GeneralPropertiesEditionPart#initType(Object
 *      input, Enumerator current)
 */
public void initType(Object input, Enumerator current) {
	type.setInput(input);
	type.modelUpdating(new StructuredSelection(current));
	boolean eefElementEditorReadOnlyState = isReadOnly(HrmViewsRepository.General.Properties.type);
	if (eefElementEditorReadOnlyState && type.isEnabled()) {
		type.setEnabled(false);
		type.setToolTipText(HrmMessages.General_ReadOnly);
	} else if (!eefElementEditorReadOnlyState && !type.isEnabled()) {
		type.setEnabled(true);
	}

}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:19,代码来源:GeneralPropertiesEditionPartImpl.java

示例5: initPolicy

import org.eclipse.emf.common.util.Enumerator; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.polarsys.time4sys.ui.library.parts.GeneralPropertiesEditionPart#initPolicy(Object input, Enumerator current)
 */
public void initPolicy(Object input, Enumerator current) {
	policy.setInput(input);
	policy.modelUpdating(new StructuredSelection(current));
	boolean eefElementEditorReadOnlyState = isReadOnly(LibraryViewsRepository.General.Properties.policy);
	if (eefElementEditorReadOnlyState && policy.isEnabled()) {
		policy.setEnabled(false);
		policy.setToolTipText(LibraryMessages.General_ReadOnly);
	} else if (!eefElementEditorReadOnlyState && !policy.isEnabled()) {
		policy.setEnabled(true);
	}	
	
}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:18,代码来源:GeneralPropertiesEditionPartForm.java

示例6: ruleGXorOperator

import org.eclipse.emf.common.util.Enumerator; //导入依赖的package包/类
public final Enumerator ruleGXorOperator() throws RecognitionException {
    Enumerator current = null;

    Token enumLiteral_0=null;

     enterRule(); 
    try {
        // InternalGExpressions.g:1492:28: ( (enumLiteral_0= 'xor' ) )
        // InternalGExpressions.g:1493:1: (enumLiteral_0= 'xor' )
        {
        // InternalGExpressions.g:1493:1: (enumLiteral_0= 'xor' )
        // InternalGExpressions.g:1493:3: enumLiteral_0= 'xor'
        {
        enumLiteral_0=(Token)match(input,25,FOLLOW_2); if (state.failed) return current;
        if ( state.backtracking==0 ) {

                  current = grammarAccess.getGXorOperatorAccess().getXOREnumLiteralDeclaration().getEnumLiteral().getInstance();
                  newLeafNode(enumLiteral_0, grammarAccess.getGXorOperatorAccess().getXOREnumLiteralDeclaration()); 
              
        }

        }


        }

        if ( state.backtracking==0 ) {
           leaveRule(); 
        }
    }
     
        catch (RecognitionException re) { 
            recover(input,re); 
            appendSkippedTokens();
        } 
    finally {
    }
    return current;
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:40,代码来源:InternalGExpressionsParser.java

示例7: ruleGOrOperator

import org.eclipse.emf.common.util.Enumerator; //导入依赖的package包/类
public final Enumerator ruleGOrOperator() throws RecognitionException {
    Enumerator current = null;

    Token enumLiteral_0=null;

     enterRule(); 
    try {
        // InternalGExpressions.g:1505:28: ( (enumLiteral_0= 'or' ) )
        // InternalGExpressions.g:1506:1: (enumLiteral_0= 'or' )
        {
        // InternalGExpressions.g:1506:1: (enumLiteral_0= 'or' )
        // InternalGExpressions.g:1506:3: enumLiteral_0= 'or'
        {
        enumLiteral_0=(Token)match(input,26,FOLLOW_2); if (state.failed) return current;
        if ( state.backtracking==0 ) {

                  current = grammarAccess.getGOrOperatorAccess().getOREnumLiteralDeclaration().getEnumLiteral().getInstance();
                  newLeafNode(enumLiteral_0, grammarAccess.getGOrOperatorAccess().getOREnumLiteralDeclaration()); 
              
        }

        }


        }

        if ( state.backtracking==0 ) {
           leaveRule(); 
        }
    }
     
        catch (RecognitionException re) { 
            recover(input,re); 
            appendSkippedTokens();
        } 
    finally {
    }
    return current;
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:40,代码来源:InternalGExpressionsParser.java

示例8: initPldTechnology

import org.eclipse.emf.common.util.Enumerator; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.polarsys.time4sys.ui.hrm.parts.OtherPropertiesEditionPart#initPldTechnology(Object
 *      input, Enumerator current)
 */
public void initPldTechnology(Object input, Enumerator current) {
	pldTechnology.setInput(input);
	pldTechnology.modelUpdating(new StructuredSelection(current));
	boolean eefElementEditorReadOnlyState = isReadOnly(HrmViewsRepository.Other.Properties.pldTechnology);
	if (eefElementEditorReadOnlyState && pldTechnology.isEnabled()) {
		pldTechnology.setEnabled(false);
		pldTechnology.setToolTipText(HrmMessages.Other_ReadOnly);
	} else if (!eefElementEditorReadOnlyState && !pldTechnology.isEnabled()) {
		pldTechnology.setEnabled(true);
	}

}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:19,代码来源:OtherPropertiesEditionPartImpl.java

示例9: initPolicy

import org.eclipse.emf.common.util.Enumerator; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.polarsys.time4sys.ui.srm.parts.TimingPropertiesEditionPart#initPolicy(Object
 *      input, Enumerator current)
 */
public void initPolicy(Object input, Enumerator current) {
	policy.setInput(input);
	policy.modelUpdating(new StructuredSelection(current));
	boolean eefElementEditorReadOnlyState = isReadOnly(SrmViewsRepository.Timing.Properties.policy);
	if (eefElementEditorReadOnlyState && policy.isEnabled()) {
		policy.setEnabled(false);
		policy.setToolTipText(SrmMessages.Timing_ReadOnly);
	} else if (!eefElementEditorReadOnlyState && !policy.isEnabled()) {
		policy.setEnabled(true);
	}

}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:19,代码来源:TimingPropertiesEditionPartForm.java

示例10: initProtocol

import org.eclipse.emf.common.util.Enumerator; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.polarsys.time4sys.ui.grm.parts.GeneralPropertiesEditionPart#initProtocol(Object
 *      input, Enumerator current)
 */
public void initProtocol(Object input, Enumerator current) {
	protocol.setInput(input);
	protocol.modelUpdating(new StructuredSelection(current));
	boolean eefElementEditorReadOnlyState = isReadOnly(GrmViewsRepository.General.Properties.protocol);
	if (eefElementEditorReadOnlyState && protocol.isEnabled()) {
		protocol.setEnabled(false);
		protocol.setToolTipText(GrmMessages.General_ReadOnly);
	} else if (!eefElementEditorReadOnlyState && !protocol.isEnabled()) {
		protocol.setEnabled(true);
	}

}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:19,代码来源:GeneralPropertiesEditionPartForm.java

示例11: setProtocol

import org.eclipse.emf.common.util.Enumerator; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.polarsys.time4sys.ui.grm.parts.GeneralPropertiesEditionPart#setProtocol(Enumerator
 *      newValue)
 * 
 */
public void setProtocol(Enumerator newValue) {
	protocol.modelUpdating(new StructuredSelection(newValue));
	boolean eefElementEditorReadOnlyState = isReadOnly(GrmViewsRepository.General.Properties.protocol);
	if (eefElementEditorReadOnlyState && protocol.isEnabled()) {
		protocol.setEnabled(false);
		protocol.setToolTipText(GrmMessages.General_ReadOnly);
	} else if (!eefElementEditorReadOnlyState && !protocol.isEnabled()) {
		protocol.setEnabled(true);
	}

}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:19,代码来源:GeneralPropertiesEditionPartForm.java

示例12: initTransmMode

import org.eclipse.emf.common.util.Enumerator; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.polarsys.time4sys.ui.grm.parts.GeneralPropertiesEditionPart#initTransmMode(Object
 *      input, Enumerator current)
 */
public void initTransmMode(Object input, Enumerator current) {
	transmMode.setInput(input);
	transmMode.modelUpdating(new StructuredSelection(current));
	boolean eefElementEditorReadOnlyState = isReadOnly(GrmViewsRepository.General.Properties.transmMode);
	if (eefElementEditorReadOnlyState && transmMode.isEnabled()) {
		transmMode.setEnabled(false);
		transmMode.setToolTipText(GrmMessages.General_ReadOnly);
	} else if (!eefElementEditorReadOnlyState && !transmMode.isEnabled()) {
		transmMode.setEnabled(true);
	}

}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:19,代码来源:GeneralPropertiesEditionPartForm.java

示例13: initMechanism

import org.eclipse.emf.common.util.Enumerator; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.polarsys.time4sys.ui.srm.parts.TimingPropertiesEditionPart#initMechanism(Object
 *      input, Enumerator current)
 */
public void initMechanism(Object input, Enumerator current) {
	mechanism.setInput(input);
	mechanism.modelUpdating(new StructuredSelection(current));
	boolean eefElementEditorReadOnlyState = isReadOnly(SrmViewsRepository.Timing.Properties.mechanism);
	if (eefElementEditorReadOnlyState && mechanism.isEnabled()) {
		mechanism.setEnabled(false);
		mechanism.setToolTipText(SrmMessages.Timing_ReadOnly);
	} else if (!eefElementEditorReadOnlyState && !mechanism.isEnabled()) {
		mechanism.setEnabled(true);
	}

}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:19,代码来源:TimingPropertiesEditionPartForm.java

示例14: setConcurrentAccessProtocol

import org.eclipse.emf.common.util.Enumerator; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.polarsys.time4sys.ui.srm.parts.TimingPropertiesEditionPart#setConcurrentAccessProtocol(Enumerator
 *      newValue)
 * 
 */
public void setConcurrentAccessProtocol(Enumerator newValue) {
	concurrentAccessProtocol.modelUpdating(new StructuredSelection(newValue));
	boolean eefElementEditorReadOnlyState = isReadOnly(
			SrmViewsRepository.Timing.Properties.concurrentAccessProtocol);
	if (eefElementEditorReadOnlyState && concurrentAccessProtocol.isEnabled()) {
		concurrentAccessProtocol.setEnabled(false);
		concurrentAccessProtocol.setToolTipText(SrmMessages.Timing_ReadOnly);
	} else if (!eefElementEditorReadOnlyState && !concurrentAccessProtocol.isEnabled()) {
		concurrentAccessProtocol.setEnabled(true);
	}

}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:20,代码来源:TimingPropertiesEditionPartImpl.java

示例15: initDirection

import org.eclipse.emf.common.util.Enumerator; //导入依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.polarsys.time4sys.ui.hrm.parts.OtherPropertiesEditionPart#initDirection(Object
 *      input, Enumerator current)
 */
public void initDirection(Object input, Enumerator current) {
	direction.setInput(input);
	direction.modelUpdating(new StructuredSelection(current));
	boolean eefElementEditorReadOnlyState = isReadOnly(HrmViewsRepository.Other.Properties.direction);
	if (eefElementEditorReadOnlyState && direction.isEnabled()) {
		direction.setEnabled(false);
		direction.setToolTipText(HrmMessages.Other_ReadOnly);
	} else if (!eefElementEditorReadOnlyState && !direction.isEnabled()) {
		direction.setEnabled(true);
	}

}
 
开发者ID:polarsys,项目名称:time4sys,代码行数:19,代码来源:OtherPropertiesEditionPartImpl.java


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