當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。