use of org.talend.repository.services.ui.ESBWizard in project tesb-studio-se by Talend.
the class CreateESBAction method doRun.
/*
* (non-Javadoc)
*
* @see org.eclipse.jface.action.Action#run()
*/
@Override
protected void doRun() {
RepositoryNode beanNode = getCurrentRepositoryNode();
if (isToolbar()) {
if (beanNode != null && beanNode.getContentType() != ESBRepositoryNodeType.SERVICES) {
beanNode = null;
}
if (beanNode == null) {
beanNode = getRepositoryNodeForDefault(ESBRepositoryNodeType.SERVICES);
}
}
ISelection selection;
IWorkbenchPage activePage = getActivePage();
if (activePage == null) {
selection = getSelection();
} else {
selection = getRepositorySelection();
}
if (selection.isEmpty()) {
return;
}
ESBWizard beanWizard = new ESBWizard(PlatformUI.getWorkbench(), true, selection);
WizardDialog dlg = new WizardDialog(Display.getCurrent().getActiveShell(), beanWizard);
dlg.open();
}
Aggregations