use of com.liferay.ide.portlet.ui.editor.PortletXmlEditor in project liferay-ide by liferay.
the class CreateLiferayPortletActionHandler method run.
/**
* (non-Javadoc)
*
* @see
* SapphireActionHandler#run(org.eclipse.sapphire.ui.
* SapphireRenderingContext)
*/
@Override
protected Object run(Presentation context) {
IProject currentProject = null;
if (context.part().parent() instanceof PortletXmlEditor) {
PortletXmlEditor portletXmlEditor = (PortletXmlEditor) context.part().parent();
currentProject = portletXmlEditor.getProject();
}
NewPortletWizard newPortletWizard = new NewPortletWizard(currentProject);
WizardDialog wizardDialog = new WizardDialog(((SwtPresentation) context).shell(), newPortletWizard);
wizardDialog.create();
wizardDialog.open();
return null;
}
Aggregations