Search in sources :

Example 36 with TabElementTreeSelectionDialog

use of org.eclipse.emf.eef.runtime.ui.widgets.TabElementTreeSelectionDialog in project InformationSystem by ObeoNetwork.

the class FlowActionPropertiesEditionPartForm method addOperations.

/**
 */
protected void addOperations() {
    TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(operations.getInput(), operationsFilters, operationsBusinessFilters, "operations", 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(FlowActionPropertiesEditionPartForm.this, FlowViewsRepository.FlowAction.Properties.operations, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
            }
            operations.refresh();
        }
    };
    dialog.open();
}
Also used : TabElementTreeSelectionDialog(org.eclipse.emf.eef.runtime.ui.widgets.TabElementTreeSelectionDialog) EObject(org.eclipse.emf.ecore.EObject) IPropertiesEditionEvent(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent) PropertiesEditionEvent(org.eclipse.emf.eef.runtime.impl.notify.PropertiesEditionEvent) IStructuredSelection(org.eclipse.jface.viewers.IStructuredSelection)

Example 37 with TabElementTreeSelectionDialog

use of org.eclipse.emf.eef.runtime.ui.widgets.TabElementTreeSelectionDialog in project InformationSystem by ObeoNetwork.

the class DtoPropertiesEditionPartImpl method addAssociatedTypes.

/**
 */
protected void addAssociatedTypes() {
    TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(associatedTypes.getInput(), associatedTypesFilters, associatedTypesBusinessFilters, "associatedTypes", 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(DtoPropertiesEditionPartImpl.this, EnvironmentViewsRepository.Dto.Properties.associatedTypes, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
            }
            associatedTypes.refresh();
        }
    };
    dialog.open();
}
Also used : TabElementTreeSelectionDialog(org.eclipse.emf.eef.runtime.ui.widgets.TabElementTreeSelectionDialog) EObject(org.eclipse.emf.ecore.EObject) IPropertiesEditionEvent(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent) PropertiesEditionEvent(org.eclipse.emf.eef.runtime.impl.notify.PropertiesEditionEvent) IStructuredSelection(org.eclipse.jface.viewers.IStructuredSelection)

Example 38 with TabElementTreeSelectionDialog

use of org.eclipse.emf.eef.runtime.ui.widgets.TabElementTreeSelectionDialog in project InformationSystem by ObeoNetwork.

the class DtoPropertiesEditionPartForm method addAssociatedTypes.

/**
 */
protected void addAssociatedTypes() {
    TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(associatedTypes.getInput(), associatedTypesFilters, associatedTypesBusinessFilters, "associatedTypes", 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(DtoPropertiesEditionPartForm.this, EnvironmentViewsRepository.Dto.Properties.associatedTypes, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
            }
            associatedTypes.refresh();
        }
    };
    dialog.open();
}
Also used : TabElementTreeSelectionDialog(org.eclipse.emf.eef.runtime.ui.widgets.TabElementTreeSelectionDialog) EObject(org.eclipse.emf.ecore.EObject) IPropertiesEditionEvent(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent) PropertiesEditionEvent(org.eclipse.emf.eef.runtime.impl.notify.PropertiesEditionEvent) IStructuredSelection(org.eclipse.jface.viewers.IStructuredSelection)

Example 39 with TabElementTreeSelectionDialog

use of org.eclipse.emf.eef.runtime.ui.widgets.TabElementTreeSelectionDialog in project InformationSystem by ObeoNetwork.

the class EntityPropertiesEditionPartForm method addAssociatedTypes.

/**
 */
protected void addAssociatedTypes() {
    TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(associatedTypes.getInput(), associatedTypesFilters, associatedTypesBusinessFilters, "associatedTypes", 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(EntityPropertiesEditionPartForm.this, EntityViewsRepository.Entity_.Properties.associatedTypes, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
            }
            associatedTypes.refresh();
        }
    };
    dialog.open();
}
Also used : TabElementTreeSelectionDialog(org.eclipse.emf.eef.runtime.ui.widgets.TabElementTreeSelectionDialog) EObject(org.eclipse.emf.ecore.EObject) IPropertiesEditionEvent(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent) PropertiesEditionEvent(org.eclipse.emf.eef.runtime.impl.notify.PropertiesEditionEvent) IStructuredSelection(org.eclipse.jface.viewers.IStructuredSelection)

Example 40 with TabElementTreeSelectionDialog

use of org.eclipse.emf.eef.runtime.ui.widgets.TabElementTreeSelectionDialog in project InformationSystem by ObeoNetwork.

the class ToolkitsPropertiesEditionPartImpl method addToolkits.

/**
 */
protected void addToolkits() {
    TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(toolkits.getInput(), toolkitsFilters, toolkitsBusinessFilters, "toolkits", 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(ToolkitsPropertiesEditionPartImpl.this, CinematicViewsRepository.Toolkits.Properties.toolkits_, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
            }
            toolkits.refresh();
        }
    };
    dialog.open();
}
Also used : TabElementTreeSelectionDialog(org.eclipse.emf.eef.runtime.ui.widgets.TabElementTreeSelectionDialog) EObject(org.eclipse.emf.ecore.EObject) IPropertiesEditionEvent(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent) PropertiesEditionEvent(org.eclipse.emf.eef.runtime.impl.notify.PropertiesEditionEvent) IStructuredSelection(org.eclipse.jface.viewers.IStructuredSelection)

Aggregations

EObject (org.eclipse.emf.ecore.EObject)78 IPropertiesEditionEvent (org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent)78 PropertiesEditionEvent (org.eclipse.emf.eef.runtime.impl.notify.PropertiesEditionEvent)78 TabElementTreeSelectionDialog (org.eclipse.emf.eef.runtime.ui.widgets.TabElementTreeSelectionDialog)78 IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)78