use of org.eclipse.emf.eef.runtime.ui.widgets.TabElementTreeSelectionDialog in project InformationSystem by ObeoNetwork.
the class StatePropertiesEditionPartForm method addOutcomingTransitions.
/**
*/
protected void addOutcomingTransitions() {
TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(outcomingTransitions.getInput(), outcomingTransitionsFilters, outcomingTransitionsBusinessFilters, "outcomingTransitions", 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(StatePropertiesEditionPartForm.this, StatemachineViewsRepository.State.Properties.outcomingTransitions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
}
outcomingTransitions.refresh();
}
};
dialog.open();
}
use of org.eclipse.emf.eef.runtime.ui.widgets.TabElementTreeSelectionDialog in project InformationSystem by ObeoNetwork.
the class FinalStatePropertiesEditionPartImpl 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(FinalStatePropertiesEditionPartImpl.this, StatemachineViewsRepository.FinalState.Properties.incomingTransitions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
}
incomingTransitions.refresh();
}
};
dialog.open();
}
use of org.eclipse.emf.eef.runtime.ui.widgets.TabElementTreeSelectionDialog in project InformationSystem by ObeoNetwork.
the class InitialStatePropertiesEditionPartImpl 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(InitialStatePropertiesEditionPartImpl.this, StatemachineViewsRepository.InitialState.Properties.incomingTransitions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
}
incomingTransitions.refresh();
}
};
dialog.open();
}
use of org.eclipse.emf.eef.runtime.ui.widgets.TabElementTreeSelectionDialog in project InformationSystem by ObeoNetwork.
the class StatePropertiesEditionPartImpl method addOutcomingTransitions.
/**
*/
protected void addOutcomingTransitions() {
TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(outcomingTransitions.getInput(), outcomingTransitionsFilters, outcomingTransitionsBusinessFilters, "outcomingTransitions", 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(StatePropertiesEditionPartImpl.this, StatemachineViewsRepository.State.Properties.outcomingTransitions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
}
outcomingTransitions.refresh();
}
};
dialog.open();
}
use of org.eclipse.emf.eef.runtime.ui.widgets.TabElementTreeSelectionDialog in project InformationSystem by ObeoNetwork.
the class TaskPropertiesEditionPartImpl method addUses.
/**
*/
protected void addUses() {
TabElementTreeSelectionDialog dialog = new TabElementTreeSelectionDialog(uses.getInput(), usesFilters, usesBusinessFilters, "uses", 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(TaskPropertiesEditionPartImpl.this, GraalViewsRepository.Task.Properties.uses, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
}
uses.refresh();
}
};
dialog.open();
}
Aggregations