use of org.eclipse.emf.eef.runtime.ui.widgets.TabElementTreeSelectionDialog in project InformationSystem by ObeoNetwork.
the class AppliActionPropertiesEditionPartImpl 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(AppliActionPropertiesEditionPartImpl.this, GraalViewsRepository.AppliAction.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 AppliActionPropertiesEditionPartImpl 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(AppliActionPropertiesEditionPartImpl.this, GraalViewsRepository.AppliAction.Properties.outgoingTransitions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
}
outgoingTransitions.refresh();
}
};
dialog.open();
}
use of org.eclipse.emf.eef.runtime.ui.widgets.TabElementTreeSelectionDialog in project InformationSystem by ObeoNetwork.
the class OperatorPropertiesEditionPartForm 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(OperatorPropertiesEditionPartForm.this, GraalViewsRepository.Operator.Properties.outgoingTransitions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
}
outgoingTransitions.refresh();
}
};
dialog.open();
}
use of org.eclipse.emf.eef.runtime.ui.widgets.TabElementTreeSelectionDialog in project InformationSystem by ObeoNetwork.
the class OperatorPropertiesEditionPartForm 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(OperatorPropertiesEditionPartForm.this, GraalViewsRepository.Operator.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 TaskReferencePropertiesEditionPartForm 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(TaskReferencePropertiesEditionPartForm.this, GraalViewsRepository.TaskReference.Properties.incomingTransitions, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
}
incomingTransitions.refresh();
}
};
dialog.open();
}
Aggregations