Search in sources :

Example 31 with TabElementTreeSelectionDialog

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

the class TaskReferencePropertiesEditionPartForm method addOutgoingTransitions.

/**
 */
protected void addOutgoingTransitions() {
    TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(outgoingTransitions.getInput(), outgoingTransitionsFilters, outgoingTransitionsBusinessFilters, "outgoingTransitions", 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(TaskReferencePropertiesEditionPartForm.this, GraalViewsRepository.TaskReference.Properties.outgoingTransitions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
            }
            outgoingTransitions.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 32 with TabElementTreeSelectionDialog

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

the class EntityPropertiesEditionPartImpl 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(EntityPropertiesEditionPartImpl.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 33 with TabElementTreeSelectionDialog

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

the class ViewStatePropertiesEditionPartForm method addViewContainers.

/**
 */
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();
}
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 34 with TabElementTreeSelectionDialog

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

the class TransitionPropertiesEditionPartImpl method addOn.

/**
 */
protected void addOn() {
    TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(on.getInput(), onFilters, onBusinessFilters, "on", 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(TransitionPropertiesEditionPartImpl.this, FlowViewsRepository.Transition.Properties.on, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
            }
            on.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 35 with TabElementTreeSelectionDialog

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

the class ViewStatePropertiesEditionPartImpl method addViewContainers.

/**
 */
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(ViewStatePropertiesEditionPartImpl.this, FlowViewsRepository.ViewState.Properties.viewContainers, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
            }
            viewContainers.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