/** * {@inheritDoc} * * @see * org.obeonetwork.dsl.uml2.properties.uml.parts.LiteralsPropertiesEditionPart#initLiterals(EObject * current, EReference containingFeature, EReference feature) */ public void initLiterals(ReferencesTableSettings settings) { if (current.eResource() != null && current.eResource().getResourceSet() != null) this.resourceSet = current.eResource().getResourceSet(); ReferencesTableContentProvider contentProvider = new ReferencesTableContentProvider(); literals.setContentProvider(contentProvider); literals.setInput(settings); boolean eefElementEditorReadOnlyState = isReadOnly(UmlViewsRepository.Literals.literals_); if (eefElementEditorReadOnlyState && literals.isEnabled()) { literals.setEnabled(false); literals.setToolTipText(UmlMessages.Literals_ReadOnly); } else if (!eefElementEditorReadOnlyState && !literals.isEnabled()) { literals.setEnabled(true); } }
/** * {@inheritDoc} * * @see * org.obeonetwork.dsl.cinematic.flow.parts.SubflowStatePropertiesEditionPart#initActions(EObject * current, EReference containingFeature, EReference feature) */ public void initActions(ReferencesTableSettings settings) { if (current.eResource() != null && current.eResource().getResourceSet() != null) this.resourceSet = current.eResource().getResourceSet(); ReferencesTableContentProvider contentProvider = new ReferencesTableContentProvider(); actions.setContentProvider(contentProvider); actions.setInput(settings); boolean eefElementEditorReadOnlyState = isReadOnly(FlowViewsRepository.SubflowState.Properties.actions); if (eefElementEditorReadOnlyState && actions.isEnabled()) { actions.setEnabled(false); actions.setToolTipText(FlowMessages.SubflowState_ReadOnly); } else if (!eefElementEditorReadOnlyState && !actions.isEnabled()) { actions.setEnabled(true); } }
/** * {@inheritDoc} * * @see * org.obeonetwork.dsl.entityrelation.parts.EntityPropertiesEditionPart#initAttributes(EObject * current, EReference containingFeature, EReference feature) */ public void initAttributes(ReferencesTableSettings settings) { if (current.eResource() != null && current.eResource().getResourceSet() != null) this.resourceSet = current.eResource().getResourceSet(); ReferencesTableContentProvider contentProvider = new ReferencesTableContentProvider(); attributes.setContentProvider(contentProvider); attributes.setInput(settings); boolean eefElementEditorReadOnlyState = isReadOnly(EntityrelationViewsRepository.Entity.Properties.attributes); if (eefElementEditorReadOnlyState && attributes.isEnabled()) { attributes.setEnabled(false); attributes.setToolTipText(EntityrelationMessages.Entity_ReadOnly); } else if (!eefElementEditorReadOnlyState && !attributes.isEnabled()) { attributes.setEnabled(true); } }
/** * {@inheritDoc} * * @see * com.github.lbroudoux.dsl.eip.parts.TransformerPropertiesEditionPart#initFromChannels(org.eclipse.emf.eef.runtime.ui.widgets.referencestable.ReferencesTableSettings) */ public void initFromChannels(ReferencesTableSettings settings) { if (current.eResource() != null && current.eResource().getResourceSet() != null) this.resourceSet = current.eResource().getResourceSet(); ReferencesTableContentProvider contentProvider = new ReferencesTableContentProvider(); fromChannels.setContentProvider(contentProvider); fromChannels.setInput(settings); boolean eefElementEditorReadOnlyState = isReadOnly(EipViewsRepository.Transformer.Properties.fromChannels); if (eefElementEditorReadOnlyState && fromChannels.getTable().isEnabled()) { fromChannels.setEnabled(false); fromChannels.setToolTipText(EipMessages.Transformer_ReadOnly); } else if (!eefElementEditorReadOnlyState && !fromChannels.getTable().isEnabled()) { fromChannels.setEnabled(true); } }
/** * {@inheritDoc} * * @see * org.eclipse.emf.ecoretools.design.properties.ecore.parts.EClassPropertiesEditionPart#initEGenericSuperTypes(EObject * current, EReference containingFeature, EReference feature) */ public void initEGenericSuperTypes(ReferencesTableSettings settings) { if (current.eResource() != null && current.eResource().getResourceSet() != null) this.resourceSet = current.eResource().getResourceSet(); ReferencesTableContentProvider contentProvider = new ReferencesTableContentProvider(); eGenericSuperTypes.setContentProvider(contentProvider); eGenericSuperTypes.setInput(settings); boolean eefElementEditorReadOnlyState = isReadOnly(EcoreViewsRepository.EClass.Inheritance.eGenericSuperTypes); if (eefElementEditorReadOnlyState && eGenericSuperTypes.isEnabled()) { eGenericSuperTypes.setEnabled(false); eGenericSuperTypes.setToolTipText(EcoreMessages.EClass_ReadOnly); } else if (!eefElementEditorReadOnlyState && !eGenericSuperTypes.isEnabled()) { eGenericSuperTypes.setEnabled(true); } }
/** * {@inheritDoc} * * @see * net.certware.sacm.SACM.Evidence.parts.HasRoleInPropertiesEditionPart#initProvenance(EObject * current, EReference containingFeature, EReference feature) */ public void initProvenance(ReferencesTableSettings settings) { if (current.eResource() != null && current.eResource().getResourceSet() != null) this.resourceSet = current.eResource().getResourceSet(); ReferencesTableContentProvider contentProvider = new ReferencesTableContentProvider(); provenance.setContentProvider(contentProvider); provenance.setInput(settings); boolean eefElementEditorReadOnlyState = isReadOnly(EvidenceViewsRepository.HasRoleIn.Properties.provenance); if (eefElementEditorReadOnlyState && provenance.isEnabled()) { provenance.setEnabled(false); provenance.setToolTipText(EvidenceMessages.HasRoleIn_ReadOnly); } else if (!eefElementEditorReadOnlyState && !provenance.isEnabled()) { provenance.setEnabled(true); } }
/** * {@inheritDoc} * * @see com.github.lbroudoux.dsl.eip.parts.RouterPropertiesEditionPart#initOwnedRoutes(EObject * current, EReference containingFeature, EReference feature) */ public void initOwnedRoutes(ReferencesTableSettings settings) { if (current.eResource() != null && current.eResource().getResourceSet() != null) this.resourceSet = current.eResource().getResourceSet(); ReferencesTableContentProvider contentProvider = new ReferencesTableContentProvider(); ownedRoutes.setContentProvider(contentProvider); ownedRoutes.setInput(settings); boolean eefElementEditorReadOnlyState = isReadOnly(EipViewsRepository.Router.Properties.ownedRoutes); if (eefElementEditorReadOnlyState && ownedRoutes.isEnabled()) { ownedRoutes.setEnabled(false); ownedRoutes.setToolTipText(EipMessages.Router_ReadOnly); } else if (!eefElementEditorReadOnlyState && !ownedRoutes.isEnabled()) { ownedRoutes.setEnabled(true); } }
/** * {@inheritDoc} * * @see org.obeonetwork.dsl.database.parts.ForeignKeyPropertiesEditionPart#initElements(EObject * current, EReference containingFeature, EReference feature) */ public void initElements(ReferencesTableSettings settings) { if (current.eResource() != null && current.eResource().getResourceSet() != null) this.resourceSet = current.eResource().getResourceSet(); ReferencesTableContentProvider contentProvider = new ReferencesTableContentProvider(); elements.setContentProvider(contentProvider); elements.setInput(settings); boolean eefElementEditorReadOnlyState = isReadOnly(DatabaseViewsRepository.ForeignKey.Properties.elements); if (eefElementEditorReadOnlyState && elements.isEnabled()) { elements.setEnabled(false); elements.setToolTipText(DatabaseMessages.ForeignKey_ReadOnly); } else if (!eefElementEditorReadOnlyState && !elements.isEnabled()) { elements.setEnabled(true); } }
/** * {@inheritDoc} * * @see net.certware.sacm.SACM.Evidence.parts.MethodPropertiesEditionPart#initCustody(EObject * current, EReference containingFeature, EReference feature) */ public void initCustody(ReferencesTableSettings settings) { if (current.eResource() != null && current.eResource().getResourceSet() != null) this.resourceSet = current.eResource().getResourceSet(); ReferencesTableContentProvider contentProvider = new ReferencesTableContentProvider(); custody.setContentProvider(contentProvider); custody.setInput(settings); boolean eefElementEditorReadOnlyState = isReadOnly(EvidenceViewsRepository.Method.Properties.custody); if (eefElementEditorReadOnlyState && custody.isEnabled()) { custody.setEnabled(false); custody.setToolTipText(EvidenceMessages.Method_ReadOnly); } else if (!eefElementEditorReadOnlyState && !custody.isEnabled()) { custody.setEnabled(true); } }
/** {@inheritDoc} */ public void initAppliedProfiles(OperationsTableSettings settings) { if (current.eResource() != null && current.eResource().getResourceSet() != null) this.resourceSet = current.eResource().getResourceSet(); labelService = new TableLabelService(settings.getSource()); OperationsTableContentProvider contentProvider = new OperationsTableContentProvider(); appliedProfiles.setContentProvider(contentProvider); appliedProfiles.setInput(settings); boolean eefElementEditorReadOnlyState = isReadOnly(CustomUmlViewsRepository.Profiles.appliedProfiles); if (eefElementEditorReadOnlyState && appliedProfiles.isEnabled()) { appliedProfiles.setEnabled(false); appliedProfiles.setToolTipText(CustomUmlMessages.Profiles_ReadOnly); } else if (!eefElementEditorReadOnlyState && !appliedProfiles.isEnabled()) { appliedProfiles.setEnabled(true); } }