/** * {@inheritDoc} * * @see * org.obeonetwork.dsl.spem.uma.parts.GuidancePackagePropertiesEditionPart#initOwnedMethodContentMember(EObject * current, EReference containingFeature, EReference feature) */ public void initOwnedMethodContentMember(ReferencesTableSettings settings) { if (current.eResource() != null && current.eResource().getResourceSet() != null) this.resourceSet = current.eResource().getResourceSet(); ReferencesTableContentProvider contentProvider = new ReferencesTableContentProvider(); ownedMethodContentMember.setContentProvider(contentProvider); ownedMethodContentMember.setInput(settings); }
/** * {@inheritDoc} * * @see * org.obeonetwork.dsl.spem.uma.parts.GuidancePackagePropertiesEditionPart#initReusedPackage(org.eclipse.emf.eef.runtime.ui.widgets.referencestable.ReferencesTableSettings) */ public void initReusedPackage(ReferencesTableSettings settings) { if (current.eResource() != null && current.eResource().getResourceSet() != null) this.resourceSet = current.eResource().getResourceSet(); ReferencesTableContentProvider contentProvider = new ReferencesTableContentProvider(); reusedPackage.setContentProvider(contentProvider); reusedPackage.setInput(settings); }
/** * {@inheritDoc} * * @see net.certware.argument.aml.parts.ExhibitPropertiesEditionPart#initAnnotation(EObject * current, EReference containingFeature, EReference feature) */ public void initAnnotation(ReferencesTableSettings settings) { if (current.eResource() != null && current.eResource().getResourceSet() != null) this.resourceSet = current.eResource().getResourceSet(); ReferencesTableContentProvider contentProvider = new ReferencesTableContentProvider(); annotation.setContentProvider(contentProvider); annotation.setInput(settings); }
/** * {@inheritDoc} * * @see * org.obeonetwork.dsl.cinematic.flow.parts.ViewStatePropertiesEditionPart#initViewContainers(org.eclipse.emf.eef.runtime.ui.widgets.referencestable.ReferencesTableSettings) */ public void initViewContainers(ReferencesTableSettings settings) { if (current.eResource() != null && current.eResource().getResourceSet() != null) this.resourceSet = current.eResource().getResourceSet(); ReferencesTableContentProvider contentProvider = new ReferencesTableContentProvider(); viewContainers.setContentProvider(contentProvider); viewContainers.setInput(settings); }
/** * {@inheritDoc} * * @see * org.obeonetwork.dsl.uml2.properties.uml.parts.CreationEventPropertiesEditionPart#initClientDependency(org.eclipse.emf.eef.runtime.ui.widgets.referencestable.ReferencesTableSettings) */ public void initClientDependency(ReferencesTableSettings settings) { if (current.eResource() != null && current.eResource().getResourceSet() != null) this.resourceSet = current.eResource().getResourceSet(); ReferencesTableContentProvider contentProvider = new ReferencesTableContentProvider(); clientDependency.setContentProvider(contentProvider); clientDependency.setInput(settings); }
protected Composite createESuperTypesReferencesTable( FormToolkit widgetFactory, Composite parent) { this.eSuperTypes = new ReferencesTable( getDescription( EcoreViewsRepository.EClass.Inheritance.eSuperTypes, EcoreMessages.EClassPropertiesEditionPart_ESuperTypesLabel), new ReferencesTableListener() { public void handleAdd() { addESuperTypes(); } public void handleEdit(EObject element) { editESuperTypes(element); } public void handleMove(EObject element, int oldIndex, int newIndex) { moveESuperTypes(element, oldIndex, newIndex); } public void handleRemove(EObject element) { removeFromESuperTypes(element); } public void navigateTo(EObject element) {} }); this.eSuperTypes.setHelpText( propertiesEditionComponent.getHelpContent( EcoreViewsRepository.EClass.Inheritance.eSuperTypes, EcoreViewsRepository.FORM_KIND)); this.eSuperTypes.createControls(parent, widgetFactory); this.eSuperTypes.addSelectionListener( new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { if (e.item != null && e.item.getData() instanceof EObject) { propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( EClassPropertiesEditionPartForm.this, EcoreViewsRepository.EClass.Inheritance.eSuperTypes, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData())); } } }); GridData eSuperTypesData = new GridData(GridData.FILL_HORIZONTAL); eSuperTypesData.horizontalSpan = 3; this.eSuperTypes.setLayoutData(eSuperTypesData); this.eSuperTypes.disableMove(); eSuperTypes.setID(EcoreViewsRepository.EClass.Inheritance.eSuperTypes); eSuperTypes.setEEFType("eef::AdvancedReferencesTable"); // $NON-NLS-1$ // Start of user code for createESuperTypesReferencesTable // End of user code return parent; }
protected Composite createFromChannelsAdvancedReferencesTable(Composite parent) { String label = getDescription( EipViewsRepository.Transformer.Properties.fromChannels, EipMessages.TransformerPropertiesEditionPart_FromChannelsLabel); this.fromChannels = new ReferencesTable( label, new ReferencesTableListener() { public void handleAdd() { addFromChannels(); } public void handleEdit(EObject element) { editFromChannels(element); } public void handleMove(EObject element, int oldIndex, int newIndex) { moveFromChannels(element, oldIndex, newIndex); } public void handleRemove(EObject element) { removeFromFromChannels(element); } public void navigateTo(EObject element) {} }); this.fromChannels.setHelpText( propertiesEditionComponent.getHelpContent( EipViewsRepository.Transformer.Properties.fromChannels, EipViewsRepository.SWT_KIND)); this.fromChannels.createControls(parent); this.fromChannels.addSelectionListener( new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { if (e.item != null && e.item.getData() instanceof EObject) { propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( TransformerPropertiesEditionPartImpl.this, EipViewsRepository.Transformer.Properties.fromChannels, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData())); } } }); GridData fromChannelsData = new GridData(GridData.FILL_HORIZONTAL); fromChannelsData.horizontalSpan = 3; this.fromChannels.setLayoutData(fromChannelsData); this.fromChannels.disableMove(); fromChannels.setID(EipViewsRepository.Transformer.Properties.fromChannels); fromChannels.setEEFType("eef::AdvancedReferencesTable"); // $NON-NLS-1$ return parent; }
protected Composite createViewContainersReferencesTable( FormToolkit widgetFactory, Composite parent) { this.viewContainers = new ReferencesTable( getDescription( FlowViewsRepository.ViewState.Properties.viewContainers, FlowMessages.ViewStatePropertiesEditionPart_ViewContainersLabel), new ReferencesTableListener() { public void handleAdd() { addViewContainers(); } public void handleEdit(EObject element) { editViewContainers(element); } public void handleMove(EObject element, int oldIndex, int newIndex) { moveViewContainers(element, oldIndex, newIndex); } public void handleRemove(EObject element) { removeFromViewContainers(element); } public void navigateTo(EObject element) {} }); this.viewContainers.setHelpText( propertiesEditionComponent.getHelpContent( FlowViewsRepository.ViewState.Properties.viewContainers, FlowViewsRepository.FORM_KIND)); this.viewContainers.createControls(parent, widgetFactory); this.viewContainers.addSelectionListener( new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { if (e.item != null && e.item.getData() instanceof EObject) { propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( ViewStatePropertiesEditionPartForm.this, FlowViewsRepository.ViewState.Properties.viewContainers, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData())); } } }); GridData viewContainersData = new GridData(GridData.FILL_HORIZONTAL); viewContainersData.horizontalSpan = 3; this.viewContainers.setLayoutData(viewContainersData); this.viewContainers.disableMove(); viewContainers.setID(FlowViewsRepository.ViewState.Properties.viewContainers); viewContainers.setEEFType("eef::AdvancedReferencesTable"); // $NON-NLS-1$ return parent; }
protected Composite createReusedPackageReferencesTable( FormToolkit widgetFactory, Composite parent) { this.reusedPackage = new ReferencesTable( UmaMessages.QualificationPackagePropertiesEditionPart_ReusedPackageLabel, new ReferencesTableListener() { public void handleAdd() { addReusedPackage(); } public void handleEdit(EObject element) { editReusedPackage(element); } public void handleMove(EObject element, int oldIndex, int newIndex) { moveReusedPackage(element, oldIndex, newIndex); } public void handleRemove(EObject element) { removeFromReusedPackage(element); } public void navigateTo(EObject element) {} }); this.reusedPackage.setHelpText( propertiesEditionComponent.getHelpContent( UmaViewsRepository.QualificationPackage.Properties.reusedPackage, UmaViewsRepository.FORM_KIND)); this.reusedPackage.createControls(parent, widgetFactory); this.reusedPackage.addSelectionListener( new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { if (e.item != null && e.item.getData() instanceof EObject) { propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( QualificationPackagePropertiesEditionPartForm.this, UmaViewsRepository.QualificationPackage.Properties.reusedPackage, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData())); } } }); GridData reusedPackageData = new GridData(GridData.FILL_HORIZONTAL); reusedPackageData.horizontalSpan = 3; this.reusedPackage.setLayoutData(reusedPackageData); this.reusedPackage.disableMove(); reusedPackage.setID(UmaViewsRepository.QualificationPackage.Properties.reusedPackage); reusedPackage.setEEFType("eef::AdvancedReferencesTable"); // $NON-NLS-1$ return parent; }
protected Composite createClientDependencyAdvancedReferencesTable(Composite parent) { this.clientDependency = new ReferencesTable( UmlMessages.CreationEventPropertiesEditionPart_ClientDependencyLabel, new ReferencesTableListener() { public void handleAdd() { addClientDependency(); } public void handleEdit(EObject element) { editClientDependency(element); } public void handleMove(EObject element, int oldIndex, int newIndex) { moveClientDependency(element, oldIndex, newIndex); } public void handleRemove(EObject element) { removeFromClientDependency(element); } public void navigateTo(EObject element) {} }); this.clientDependency.setHelpText( propertiesEditionComponent.getHelpContent( UmlViewsRepository.CreationEvent.Properties.clientDependency, UmlViewsRepository.SWT_KIND)); this.clientDependency.createControls(parent); this.clientDependency.addSelectionListener( new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { if (e.item != null && e.item.getData() instanceof EObject) { propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( CreationEventPropertiesEditionPartImpl.this, UmlViewsRepository.CreationEvent.Properties.clientDependency, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SELECTION_CHANGED, null, e.item.getData())); } } }); GridData clientDependencyData = new GridData(GridData.FILL_HORIZONTAL); clientDependencyData.horizontalSpan = 3; this.clientDependency.setLayoutData(clientDependencyData); this.clientDependency.disableMove(); clientDependency.setID(UmlViewsRepository.CreationEvent.Properties.clientDependency); clientDependency.setEEFType("eef::AdvancedReferencesTable"); // $NON-NLS-1$ return parent; }
protected void addFromChannels() { TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog( fromChannels.getInput(), fromChannelsFilters, fromChannelsBusinessFilters, "fromChannels", propertiesEditionComponent.getEditingContext().getAdapterFactory(), current.eResource()) { @Override public void process(IStructuredSelection selection) { for (Iterator<?> iter = selection.iterator(); iter.hasNext(); ) { EObject elem = (EObject) iter.next(); propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( TransformerPropertiesEditionPartImpl.this, EipViewsRepository.Transformer.Properties.fromChannels, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem)); } fromChannels.refresh(); } }; dialog.open(); }
protected void addAppliedProfiles() { TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog( appliedProfiles.getInput(), appliedProfilesFilters, appliedProfilesBusinessFilters, "appliedProfiles", propertiesEditionComponent.getEditingContext().getAdapterFactory(), current.eResource()) { @Override public void process(IStructuredSelection selection) { for (Iterator<?> iter = selection.iterator(); iter.hasNext(); ) { EObject elem = (EObject) iter.next(); propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( ProfilesPropertiesEditionPartForm.this, CustomUmlViewsRepository.Profiles.appliedProfiles, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem)); } appliedProfiles.refresh(); } }; dialog.open(); }
protected void addESuperTypes() { TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog( eSuperTypes.getInput(), eSuperTypesFilters, eSuperTypesBusinessFilters, "eSuperTypes", propertiesEditionComponent.getEditingContext().getAdapterFactory(), current.eResource()) { @Override public void process(IStructuredSelection selection) { for (Iterator<?> iter = selection.iterator(); iter.hasNext(); ) { EObject elem = (EObject) iter.next(); propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( EClassPropertiesEditionPartForm.this, EcoreViewsRepository.EClass.Inheritance.eSuperTypes, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem)); } eSuperTypes.refresh(); } }; dialog.open(); }
protected void editTestART(DocumentedElement element) { // Start of user code editTestART() method body EObject editedElement = testARTEditUtil.foundCorrespondingEObject(element); IPropertiesEditionPolicyProvider policyProvider = PropertiesEditionPolicyProviderService.getInstance().getProvider(element); IPropertiesEditionPolicy editionPolicy = policyProvider.getEditionPolicy(editedElement); if (editionPolicy != null) { EObject propertiesEditionObject = editionPolicy.getPropertiesEditionObject( new EObjectPropertiesEditionContext(null, element, resourceSet)); if (propertiesEditionObject != null) { testARTEditUtil.putElementToRefresh(editedElement, propertiesEditionObject); testART.refresh(); propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( TestFilterPropertiesEditionPartForm.this, NonregViewsRepository.TestFilter.testART, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, editedElement, propertiesEditionObject)); } } // End of user code }
protected void addReusedPackage() { TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog( reusedPackage.getInput(), reusedPackageFilters, reusedPackageBusinessFilters, "reusedPackage", propertiesEditionComponent.getEditingContext().getAdapterFactory(), current.eResource()) { @Override public void process(IStructuredSelection selection) { for (Iterator<?> iter = selection.iterator(); iter.hasNext(); ) { EObject elem = (EObject) iter.next(); propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( GuidancePackagePropertiesEditionPartImpl.this, UmaViewsRepository.GuidancePackage.Properties.reusedPackage, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem)); } reusedPackage.refresh(); } }; dialog.open(); }
protected void addClientDependency() { TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog( clientDependency.getInput(), clientDependencyFilters, clientDependencyBusinessFilters, "clientDependency", propertiesEditionComponent.getEditingContext().getAdapterFactory(), current.eResource()) { @Override public void process(IStructuredSelection selection) { for (Iterator<?> iter = selection.iterator(); iter.hasNext(); ) { EObject elem = (EObject) iter.next(); propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( CreationEventPropertiesEditionPartImpl.this, UmlViewsRepository.CreationEvent.Properties.clientDependency, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem)); } clientDependency.refresh(); } }; dialog.open(); }
protected void addViewContainers() { TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog( viewContainers.getInput(), viewContainersFilters, viewContainersBusinessFilters, "viewContainers", propertiesEditionComponent.getEditingContext().getAdapterFactory(), current.eResource()) { @Override public void process(IStructuredSelection selection) { for (Iterator<?> iter = selection.iterator(); iter.hasNext(); ) { EObject elem = (EObject) iter.next(); propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( ViewStatePropertiesEditionPartForm.this, FlowViewsRepository.ViewState.Properties.viewContainers, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem)); } viewContainers.refresh(); } }; dialog.open(); }
protected void removeFromESuperTypes(EObject element) { propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( EClassPropertiesEditionPartForm.this, EcoreViewsRepository.EClass.Inheritance.eSuperTypes, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, element)); eSuperTypes.refresh(); }
protected void moveESuperTypes(EObject element, int oldIndex, int newIndex) { propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( EClassPropertiesEditionPartForm.this, EcoreViewsRepository.EClass.Inheritance.eSuperTypes, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex)); eSuperTypes.refresh(); }
protected void moveAppliedProfiles(EObject element, int oldIndex, int newIndex) { propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( ProfilesPropertiesEditionPartForm.this, CustomUmlViewsRepository.Profiles.appliedProfiles, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex)); appliedProfiles.refresh(); }
protected void editAppliedProfiles(EObject element) { propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( ProfilesPropertiesEditionPartForm.this, CustomUmlViewsRepository.Profiles.appliedProfiles, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.EDIT, null, element)); appliedProfiles.refresh(); }
protected void removeFromReusedPackage(EObject element) { propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( GuidancePackagePropertiesEditionPartImpl.this, UmaViewsRepository.GuidancePackage.Properties.reusedPackage, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, element)); reusedPackage.refresh(); }
protected void moveReusedPackage(EObject element, int oldIndex, int newIndex) { propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( GuidancePackagePropertiesEditionPartImpl.this, UmaViewsRepository.GuidancePackage.Properties.reusedPackage, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex)); reusedPackage.refresh(); }
protected void removeFromClientDependency(EObject element) { propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( CreationEventPropertiesEditionPartImpl.this, UmlViewsRepository.CreationEvent.Properties.clientDependency, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, element)); clientDependency.refresh(); }
protected void moveViewContainers(EObject element, int oldIndex, int newIndex) { propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( ViewStatePropertiesEditionPartForm.this, FlowViewsRepository.ViewState.Properties.viewContainers, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex)); viewContainers.refresh(); }
protected void removeFromViewContainers(EObject element) { propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( ViewStatePropertiesEditionPartForm.this, FlowViewsRepository.ViewState.Properties.viewContainers, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, element)); viewContainers.refresh(); }
protected void moveClientDependency(EObject element, int oldIndex, int newIndex) { propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( CreationEventPropertiesEditionPartImpl.this, UmlViewsRepository.CreationEvent.Properties.clientDependency, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex)); clientDependency.refresh(); }
protected void moveFromChannels(EObject element, int oldIndex, int newIndex) { propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( TransformerPropertiesEditionPartImpl.this, EipViewsRepository.Transformer.Properties.fromChannels, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, element, newIndex)); fromChannels.refresh(); }
protected void removeFromFromChannels(EObject element) { propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( TransformerPropertiesEditionPartImpl.this, EipViewsRepository.Transformer.Properties.fromChannels, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, element)); fromChannels.refresh(); }
protected void moveTestART(DocumentedElement element, int oldIndex, int newIndex) { EObject editedElement = testARTEditUtil.foundCorrespondingEObject(element); testARTEditUtil.moveElement(element, oldIndex, newIndex); testART.refresh(); propertiesEditionComponent.firePropertiesChanged( new PropertiesEditionEvent( TestFilterPropertiesEditionPartForm.this, NonregViewsRepository.TestFilter.testART, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex)); }