Search in sources :

Example 1 with PluginTypeDescriptionDialog

use of com.liferay.ide.project.ui.dialog.PluginTypeDescriptionDialog in project liferay-ide by liferay.

the class OpenPluginTypeDescriptionDialogAction method run.

@Override
protected Object run(Presentation context) {
    if (context instanceof SwtPresentation) {
        final SwtPresentation swt = (SwtPresentation) context;
        final NewLiferayPluginProjectOp op = getModelElement().nearest(NewLiferayPluginProjectOp.class);
        final PluginTypeDescriptionDialog dialog = new PluginTypeDescriptionDialog(swt.shell(), op, DefinitionLoader.sdef(NewLiferayPluginProjectWizard.class).dialog("PluginTypeDescription"));
        dialog.setBlockOnOpen(false);
        dialog.open();
    }
    return null;
}
Also used : SwtPresentation(org.eclipse.sapphire.ui.forms.swt.SwtPresentation) NewLiferayPluginProjectOp(com.liferay.ide.project.core.model.NewLiferayPluginProjectOp) PluginTypeDescriptionDialog(com.liferay.ide.project.ui.dialog.PluginTypeDescriptionDialog)

Aggregations

NewLiferayPluginProjectOp (com.liferay.ide.project.core.model.NewLiferayPluginProjectOp)1 PluginTypeDescriptionDialog (com.liferay.ide.project.ui.dialog.PluginTypeDescriptionDialog)1 SwtPresentation (org.eclipse.sapphire.ui.forms.swt.SwtPresentation)1