/**
  * {@inheritDoc}
  *
  * @see
  *     org.obeonetwork.dsl.environment.parts.BindingElementPropertiesEditionPart#setBoundElement(Object
  *     newValue)
  */
 public void setBoundElement(Object newValue) {
   if (newValue != null) {
     boundElement.modelUpdating(new StructuredSelection(newValue));
   } else {
     boundElement.modelUpdating(new StructuredSelection("")); // $NON-NLS-1$
   }
   boolean eefElementEditorReadOnlyState =
       isReadOnly(EnvironmentViewsRepository.BindingElement.Properties.boundElement);
   if (eefElementEditorReadOnlyState && boundElement.isEnabled()) {
     boundElement.setEnabled(false);
     boundElement.setToolTipText(EnvironmentMessages.BindingElement_ReadOnly);
   } else if (!eefElementEditorReadOnlyState && !boundElement.isEnabled()) {
     boundElement.setEnabled(true);
   }
 }
コード例 #2
0
 /**
  * {@inheritDoc}
  *
  * @see com.github.lbroudoux.dsl.eip.parts.RouterPropertiesEditionPart#setType(Enumerator
  *     newValue)
  */
 public void setType(Enumerator newValue) {
   type.modelUpdating(new StructuredSelection(newValue));
   boolean eefElementEditorReadOnlyState = isReadOnly(EipViewsRepository.Router.Properties.type);
   if (eefElementEditorReadOnlyState && type.isEnabled()) {
     type.setEnabled(false);
     type.setToolTipText(EipMessages.Router_ReadOnly);
   } else if (!eefElementEditorReadOnlyState && !type.isEnabled()) {
     type.setEnabled(true);
   }
 }
コード例 #3
0
 /**
  * {@inheritDoc}
  *
  * @see net.certware.verification.checklist.parts.ItemPropertiesEditionPart#setResult(Enumerator
  *     newValue)
  */
 public void setResult(Enumerator newValue) {
   result.modelUpdating(new StructuredSelection(newValue));
   boolean eefElementEditorReadOnlyState =
       isReadOnly(ChecklistViewsRepository.Item.Properties.result);
   if (eefElementEditorReadOnlyState && result.isEnabled()) {
     result.setEnabled(false);
     result.setToolTipText(ChecklistMessages.Item_ReadOnly);
   } else if (!eefElementEditorReadOnlyState && !result.isEnabled()) {
     result.setEnabled(true);
   }
 }
 /**
  * {@inheritDoc}
  *
  * @see org.obeonetwork.graal.parts.TransitionPropertiesEditionPart#setKind(Enumerator newValue)
  */
 public void setKind(Enumerator newValue) {
   kind.modelUpdating(new StructuredSelection(newValue));
   boolean eefElementEditorReadOnlyState =
       isReadOnly(GraalViewsRepository.Transition.Properties.kind);
   if (eefElementEditorReadOnlyState && kind.isEnabled()) {
     kind.setEnabled(false);
     kind.setToolTipText(GraalMessages.Transition_ReadOnly);
   } else if (!eefElementEditorReadOnlyState && !kind.isEnabled()) {
     kind.setEnabled(true);
   }
 }
コード例 #5
0
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.obeonetwork.dsl.uml2.properties.uml.parts.CreationEventPropertiesEditionPart#setVisibility(Enumerator
  *     newValue)
  */
 public void setVisibility(Enumerator newValue) {
   visibility.modelUpdating(new StructuredSelection(newValue));
 }
コード例 #6
0
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.obeonetwork.dsl.uml2.properties.uml.parts.CreationEventPropertiesEditionPart#initVisibility(EEnum
  *     eenum, Enumerator current)
  */
 public void initVisibility(EEnum eenum, Enumerator current) {
   visibility.setInput(eenum.getELiterals());
   visibility.modelUpdating(new StructuredSelection(current));
 }