use of org.obeonetwork.tools.requirement.wizard.operation.RequirementCreationOperation in project InformationSystem by ObeoNetwork.
the class CreateRequirementAction method run.
/**
* {@inheritDoc}
*
* @see org.eclipse.jface.action.Action#run()
*/
@Override
public void run() {
EditingDomain editingDomain = TransactionUtil.getEditingDomain(linksView.getInput());
RequirementCreationPropertiesEditingContext propertiesEditionContext = new RequirementCreationPropertiesEditingContext(null, null, editingDomain, linksView.getAdapterFactory(), linksView.getInput());
RequirementCreationOperation operation = new RequirementCreationOperation(propertiesEditionContext);
try {
operation.execute(new NullProgressMonitor(), null);
linksView.refresh();
} catch (ExecutionException e) {
// $NON-NLS-1$
EEFRuntimePlugin.getDefault().logError("An error occured during wizard editing.", e);
}
}
Aggregations