use of com.liferay.ide.project.core.model.NewLiferayPluginProjectOp in project liferay-ide by liferay.
the class NewLiferayPluginProjectPortletNameOpTests method createNewMVCPortletProjectCustomPortletName.
protected IProject createNewMVCPortletProjectCustomPortletName(String customPortletName) throws Exception {
final String projectName = "test-mvc-sdk-project";
final NewLiferayPluginProjectOp op = newProjectOp(projectName);
op.setIncludeSampleCode(true);
op.setPortletFramework("mvc");
op.setPortletName(customPortletName);
final IProject mvcProject = createAntProject(op);
assertNotNull(LiferayCore.create(IWebProject.class, mvcProject).getDefaultDocrootFolder());
return mvcProject;
}
use of com.liferay.ide.project.core.model.NewLiferayPluginProjectOp in project liferay-ide by liferay.
the class NewLiferayPluginProjectPortletNameOpTests method createNewJSFPortletProjectCustomPortletName.
protected IProject createNewJSFPortletProjectCustomPortletName(final String jsfSuite, String suffix, String customPortletName) throws Exception {
final String projectName = "test-" + jsfSuite + suffix + "-sdk-project";
final NewLiferayPluginProjectOp op = newProjectOp(projectName);
op.setIncludeSampleCode(true);
op.setPortletFramework("jsf-2.x");
op.setPortletFrameworkAdvanced("liferay_faces_alloy");
op.setPortletName(customPortletName);
final IProject jsfProject = createAntProject(op);
final IFolder webappRoot = LiferayCore.create(IWebProject.class, jsfProject).getDefaultDocrootFolder();
assertNotNull(webappRoot);
final IFile config = webappRoot.getFile("WEB-INF/faces-config.xml");
assertEquals(true, config.exists());
return jsfProject;
}
use of com.liferay.ide.project.core.model.NewLiferayPluginProjectOp in project liferay-ide by liferay.
the class NewLiferayWebPluginProjectTests method testNewWebAntProject.
@Test
public void testNewWebAntProject() throws Exception {
if (shouldSkipBundleTests())
return;
final String projectName = "test-web-project-sdk";
final NewLiferayPluginProjectOp op = newProjectOp(projectName);
op.setPluginType(PluginType.web);
final IProject webProject = createAntProject(op);
assertNotNull(LiferayCore.create(IWebProject.class, webProject).getDefaultDocrootFolder());
}
use of com.liferay.ide.project.core.model.NewLiferayPluginProjectOp 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;
}
use of com.liferay.ide.project.core.model.NewLiferayPluginProjectOp in project liferay-ide by liferay.
the class ProfileIdListener method handleTypedEvent.
@Override
protected void handleTypedEvent(PropertyContentEvent event) {
NewLiferayPluginProjectOp op = event.property().nearest(NewLiferayPluginProjectOp.class);
ElementList<Profile> selectedProfiles = op.getSelectedProfiles();
NewLiferayPluginProjectOpMethods.updateActiveProfilesValue(op, selectedProfiles);
}
Aggregations