/** * {@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); } }
/** * {@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); } }
/** * {@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); } }
/** * {@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); } }
/** * {@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); } }
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; }
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; }
/** * {@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); } }
/** * {@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); } }
/** * {@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); } }
/** * {@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); } }
/** * {@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); } }
/** * {@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); } }
/** * {@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); } }
/** * {@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); } }
/** * {@inheritDoc} * * @see org.polarsys.time4sys.ui.hrm.parts.TimingPropertiesEditionPart#initReplPolicy(Object * input, Enumerator current) */ public void initReplPolicy(Object input, Enumerator current) { replPolicy.setInput(input); replPolicy.modelUpdating(new StructuredSelection(current)); boolean eefElementEditorReadOnlyState = isReadOnly(HrmViewsRepository.Timing.TimingProperties.replPolicy); if (eefElementEditorReadOnlyState && replPolicy.isEnabled()) { replPolicy.setEnabled(false); replPolicy.setToolTipText(HrmMessages.Timing_ReadOnly); } else if (!eefElementEditorReadOnlyState && !replPolicy.isEnabled()) { replPolicy.setEnabled(true); } }
/** * {@inheritDoc} * * @see org.polarsys.time4sys.ui.library.parts.GeneralPropertiesEditionPart#setPolicy(Enumerator newValue) * */ public void setPolicy(Enumerator newValue) { policy.modelUpdating(new StructuredSelection(newValue)); 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); } }
/** * {@inheritDoc} * * @see org.polarsys.time4sys.ui.grm.parts.GeneralPropertiesEditionPart#setTransmMode(Enumerator * newValue) * */ public void setTransmMode(Enumerator newValue) { transmMode.modelUpdating(new StructuredSelection(newValue)); 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); } }
/** * {@inheritDoc} * * @see org.polarsys.time4sys.ui.grm.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(GrmViewsRepository.Timing.TimingProperties.policy); if (eefElementEditorReadOnlyState && policy.isEnabled()) { policy.setEnabled(false); policy.setToolTipText(GrmMessages.Timing_ReadOnly); } else if (!eefElementEditorReadOnlyState && !policy.isEnabled()) { policy.setEnabled(true); } }
/** * {@inheritDoc} * * @see org.polarsys.time4sys.ui.gqam.parts.GeneralPropertiesEditionPart#setConnectorKind(Enumerator * newValue) * */ public void setConnectorKind(Enumerator newValue) { connectorKind.modelUpdating(new StructuredSelection(newValue)); boolean eefElementEditorReadOnlyState = isReadOnly(GqamViewsRepository.General.Properties.connectorKind); if (eefElementEditorReadOnlyState && connectorKind.isEnabled()) { connectorKind.setEnabled(false); connectorKind.setToolTipText(GqamMessages.General_ReadOnly); } else if (!eefElementEditorReadOnlyState && !connectorKind.isEnabled()) { connectorKind.setEnabled(true); } }
/** * {@inheritDoc} * * @see org.polarsys.time4sys.ui.hrm.parts.GeneralPropertiesEditionPart#initStatus(Object * input, Enumerator current) */ public void initStatus(Object input, Enumerator current) { status.setInput(input); status.modelUpdating(new StructuredSelection(current)); boolean eefElementEditorReadOnlyState = isReadOnly(HrmViewsRepository.General.Properties.status); if (eefElementEditorReadOnlyState && status.isEnabled()) { status.setEnabled(false); status.setToolTipText(HrmMessages.General_ReadOnly); } else if (!eefElementEditorReadOnlyState && !status.isEnabled()) { status.setEnabled(true); } }
/** * {@inheritDoc} * * @see org.polarsys.time4sys.ui.gqam.parts.GeneralPropertiesEditionPart#initConnectorKind(Object * input, Enumerator current) */ public void initConnectorKind(Object input, Enumerator current) { connectorKind.setInput(input); connectorKind.modelUpdating(new StructuredSelection(current)); boolean eefElementEditorReadOnlyState = isReadOnly(GqamViewsRepository.General.Properties.connectorKind); if (eefElementEditorReadOnlyState && connectorKind.isEnabled()) { connectorKind.setEnabled(false); connectorKind.setToolTipText(GqamMessages.General_ReadOnly); } else if (!eefElementEditorReadOnlyState && !connectorKind.isEnabled()) { connectorKind.setEnabled(true); } }
/** * {@inheritDoc} * * @see org.polarsys.time4sys.ui.nfp.parts.GeneralPropertiesEditionPart#setUnit(Enumerator newValue) * */ public void setUnit(Enumerator newValue) { unit.modelUpdating(new StructuredSelection(newValue)); boolean eefElementEditorReadOnlyState = isReadOnly(NfpViewsRepository.General.Properties.unit); if (eefElementEditorReadOnlyState && unit.isEnabled()) { unit.setEnabled(false); unit.setToolTipText(NfpMessages.General_ReadOnly); } else if (!eefElementEditorReadOnlyState && !unit.isEnabled()) { unit.setEnabled(true); } }
/** * {@inheritDoc} * * @see org.polarsys.time4sys.ui.hrm.parts.TimingPropertiesEditionPart#setReplPolicy(Enumerator * newValue) * */ public void setReplPolicy(Enumerator newValue) { replPolicy.modelUpdating(new StructuredSelection(newValue)); boolean eefElementEditorReadOnlyState = isReadOnly(HrmViewsRepository.Timing.TimingProperties.replPolicy); if (eefElementEditorReadOnlyState && replPolicy.isEnabled()) { replPolicy.setEnabled(false); replPolicy.setToolTipText(HrmMessages.Timing_ReadOnly); } else if (!eefElementEditorReadOnlyState && !replPolicy.isEnabled()) { replPolicy.setEnabled(true); } }
/** * {@inheritDoc} * * @see org.polarsys.time4sys.ui.srm.parts.TimingPropertiesEditionPart#initWaitingQueuePolicy(Object * input, Enumerator current) */ public void initWaitingQueuePolicy(Object input, Enumerator current) { waitingQueuePolicy.setInput(input); waitingQueuePolicy.modelUpdating(new StructuredSelection(current)); boolean eefElementEditorReadOnlyState = isReadOnly(SrmViewsRepository.Timing.Properties.waitingQueuePolicy); if (eefElementEditorReadOnlyState && waitingQueuePolicy.isEnabled()) { waitingQueuePolicy.setEnabled(false); waitingQueuePolicy.setToolTipText(SrmMessages.Timing_ReadOnly); } else if (!eefElementEditorReadOnlyState && !waitingQueuePolicy.isEnabled()) { waitingQueuePolicy.setEnabled(true); } }
/** * {@inheritDoc} * * @see org.polarsys.time4sys.ui.srm.parts.GeneralPropertiesEditionPart#initKind(Object * input, Enumerator current) */ public void initKind(Object input, Enumerator current) { kind.setInput(input); kind.modelUpdating(new StructuredSelection(current)); boolean eefElementEditorReadOnlyState = isReadOnly(SrmViewsRepository.General.Properties.kind); if (eefElementEditorReadOnlyState && kind.isEnabled()) { kind.setEnabled(false); kind.setToolTipText(SrmMessages.General_ReadOnly); } else if (!eefElementEditorReadOnlyState && !kind.isEnabled()) { kind.setEnabled(true); } }
/** * {@inheritDoc} * * @see org.polarsys.time4sys.ui.analysis.parts.SchedulerPropertiesEditionPart#initPolicyKind(Object input, Enumerator current) */ public void initPolicyKind(Object input, Enumerator current) { policyKind.setInput(input); policyKind.modelUpdating(new StructuredSelection(current)); boolean eefElementEditorReadOnlyState = isReadOnly(AnalysisViewsRepository.Scheduler.Properties.policyKind); if (eefElementEditorReadOnlyState && policyKind.isEnabled()) { policyKind.setEnabled(false); policyKind.setToolTipText(AnalysisMessages.Scheduler_ReadOnly); } else if (!eefElementEditorReadOnlyState && !policyKind.isEnabled()) { policyKind.setEnabled(true); } }
/** * {@inheritDoc} * * @see org.polarsys.time4sys.ui.analysis.parts.TaskPropertiesEditionPart#initBehaviorKind(Object input, Enumerator current) */ public void initBehaviorKind(Object input, Enumerator current) { behaviorKind.setInput(input); behaviorKind.modelUpdating(new StructuredSelection(current)); boolean eefElementEditorReadOnlyState = isReadOnly(AnalysisViewsRepository.Task.Properties.behaviorKind); if (eefElementEditorReadOnlyState && behaviorKind.isEnabled()) { behaviorKind.setEnabled(false); behaviorKind.setToolTipText(AnalysisMessages.Task_ReadOnly); } else if (!eefElementEditorReadOnlyState && !behaviorKind.isEnabled()) { behaviorKind.setEnabled(true); } }
/** * {@inheritDoc} * * @see org.polarsys.time4sys.ui.srm.parts.TimingPropertiesEditionPart#setMessageQueuePolicy(Enumerator * newValue) * */ public void setMessageQueuePolicy(Enumerator newValue) { messageQueuePolicy.modelUpdating(new StructuredSelection(newValue)); 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); } }
/** * {@inheritDoc} * * @see org.polarsys.time4sys.ui.srm.parts.TimingPropertiesEditionPart#initAccessPolicy(Object * input, Enumerator current) */ public void initAccessPolicy(Object input, Enumerator current) { accessPolicy.setInput(input); accessPolicy.modelUpdating(new StructuredSelection(current)); boolean eefElementEditorReadOnlyState = isReadOnly(SrmViewsRepository.Timing.Properties.accessPolicy); if (eefElementEditorReadOnlyState && accessPolicy.isEnabled()) { accessPolicy.setEnabled(false); accessPolicy.setToolTipText(SrmMessages.Timing_ReadOnly); } else if (!eefElementEditorReadOnlyState && !accessPolicy.isEnabled()) { accessPolicy.setEnabled(true); } }
/** * {@inheritDoc} * * @see org.polarsys.time4sys.ui.srm.parts.GeneralPropertiesEditionPart#setKind(Enumerator * newValue) * */ public void setKind(Enumerator newValue) { kind.modelUpdating(new StructuredSelection(newValue)); boolean eefElementEditorReadOnlyState = isReadOnly(SrmViewsRepository.General.Properties.kind); if (eefElementEditorReadOnlyState && kind.isEnabled()) { kind.setEnabled(false); kind.setToolTipText(SrmMessages.General_ReadOnly); } else if (!eefElementEditorReadOnlyState && !kind.isEnabled()) { kind.setEnabled(true); } }