Search in sources :

Example 16 with TabElementTreeSelectionDialog

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

the class UseCasePropertiesEditionPartForm method addDomainClasses.

/**
 */
protected void addDomainClasses() {
    TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(domainClasses.getInput(), domainClassesFilters, domainClassesBusinessFilters, "domainClasses", 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(UseCasePropertiesEditionPartForm.this, GraalViewsRepository.UseCase.Properties.domainClasses, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
            }
            domainClasses.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 17 with TabElementTreeSelectionDialog

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

the class UseCasePropertiesEditionPartForm method addTasks.

/**
 */
protected void addTasks() {
    TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(tasks.getInput(), tasksFilters, tasksBusinessFilters, "tasks", 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(UseCasePropertiesEditionPartForm.this, GraalViewsRepository.UseCase.Properties.tasks, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
            }
            tasks.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 18 with TabElementTreeSelectionDialog

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

the class UserActionPropertiesEditionPartForm 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(UserActionPropertiesEditionPartForm.this, GraalViewsRepository.UserAction.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 19 with TabElementTreeSelectionDialog

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

the class UserViewPropertiesEditionPartForm method addIncomingTransitions.

/**
 */
protected void addIncomingTransitions() {
    TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(incomingTransitions.getInput(), incomingTransitionsFilters, incomingTransitionsBusinessFilters, "incomingTransitions", 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(UserViewPropertiesEditionPartForm.this, GraalViewsRepository.UserView.Properties.incomingTransitions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
            }
            incomingTransitions.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 20 with TabElementTreeSelectionDialog

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

the class ActorPropertiesEditionPartForm method addSubActors.

/**
 */
protected void addSubActors() {
    TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(subActors.getInput(), subActorsFilters, subActorsBusinessFilters, "subActors", 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(ActorPropertiesEditionPartForm.this, GraalViewsRepository.Actor.Properties.subActors, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
            }
            subActors.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