Search in sources :

Example 6 with SapphireDialog

use of org.eclipse.sapphire.ui.forms.swt.SapphireDialog in project liferay-ide by liferay.

the class SelectActiveProfilesMarkerResolution method promptUser.

protected int promptUser(IProject project, NewLiferayPluginProjectOp op) {
    Reference<DialogDef> dialogRef = DefinitionLoader.sdef(NewLiferayPluginProjectWizard.class).dialog("SelectActiveProfiles");
    SapphireDialog dialog = new SapphireDialog(UIUtil.getActiveShell(), op, dialogRef);
    dialog.setBlockOnOpen(true);
    return dialog.open();
}
Also used : DialogDef(org.eclipse.sapphire.ui.forms.DialogDef) NewLiferayPluginProjectWizard(com.liferay.ide.project.ui.wizard.NewLiferayPluginProjectWizard) SapphireDialog(org.eclipse.sapphire.ui.forms.swt.SapphireDialog)

Aggregations

SapphireDialog (org.eclipse.sapphire.ui.forms.swt.SapphireDialog)6 DialogDef (org.eclipse.sapphire.ui.forms.DialogDef)3 LiferayPluginSDKOp (com.liferay.ide.project.core.model.LiferayPluginSDKOp)2 NewLiferayProfile (com.liferay.ide.project.core.model.NewLiferayProfile)2 NewLiferayPluginProjectWizard (com.liferay.ide.project.ui.wizard.NewLiferayPluginProjectWizard)2 IProject (org.eclipse.core.resources.IProject)2 DefinitionLoader (org.eclipse.sapphire.ui.def.DefinitionLoader)2 Portlet (com.liferay.ide.portlet.core.model.Portlet)1 PortletApp (com.liferay.ide.portlet.core.model.PortletApp)1 NewLiferayPluginProjectOp (com.liferay.ide.project.core.model.NewLiferayPluginProjectOp)1 SDK (com.liferay.ide.sdk.core.SDK)1 ILiferayRuntime (com.liferay.ide.server.core.ILiferayRuntime)1 ArrayList (java.util.ArrayList)1 IFile (org.eclipse.core.resources.IFile)1 CoreException (org.eclipse.core.runtime.CoreException)1 ResourceStoreException (org.eclipse.sapphire.modeling.ResourceStoreException)1 Reference (org.eclipse.sapphire.ui.def.DefinitionLoader.Reference)1 MasterDetailsContentNodePart (org.eclipse.sapphire.ui.forms.MasterDetailsContentNodePart)1 MasterDetailsEditorPagePart (org.eclipse.sapphire.ui.forms.MasterDetailsEditorPagePart)1 SwtPresentation (org.eclipse.sapphire.ui.forms.swt.SwtPresentation)1