use of com.liferay.ide.portlet.core.dd.LiferayPortletDescriptorHelper in project liferay-ide by liferay.
the class BasePortletFramework method postProjectCreated.
@Override
public IStatus postProjectCreated(IProject project, String frameworkName, String portletName, IProgressMonitor monitor) {
IStatus status = Status.OK_STATUS;
if (!CoreUtil.isNullOrEmpty(portletName)) {
PortletDescriptorHelper portletDH = new PortletDescriptorHelper(project);
status = portletDH.configurePortletXml(portletName);
if (!status.isOK()) {
return status;
}
LiferayPortletDescriptorHelper liferayPortletDH = new LiferayPortletDescriptorHelper(project);
status = liferayPortletDH.configureLiferayPortletXml(portletName);
if (!status.isOK()) {
return status;
}
LiferayDisplayDescriptorHelper liferayDisplayDH = new LiferayDisplayDescriptorHelper(project);
status = liferayDisplayDH.configureLiferayDisplayXml(portletName);
}
return status;
}
Aggregations