use of com.liferay.ide.project.core.modules.BaseModuleOp in project liferay-ide by liferay.
the class NewModuleFragmentOpMethods method execute.
public static final Status execute(NewModuleFragmentOp op, ProgressMonitor pm) {
IProgressMonitor monitor = ProgressMonitorBridge.create(pm);
monitor.beginTask("Creating Liferay module fragment project (this process may take several minutes)", 100);
Status retval = null;
try {
NewLiferayProjectProvider<BaseModuleOp> projectProvider = op.getProjectProvider().content(true);
IStatus status = projectProvider.createNewProject(op, monitor);
retval = StatusBridge.create(status);
if (retval.ok()) {
_updateBuildPrefs(op);
}
} catch (Exception e) {
String msg = "Error creating Liferay module fragment project.";
ProjectCore.logError(msg, e);
return Status.createErrorStatus(msg + " Please see Eclipse error log for more details.", e);
}
return retval;
}
Aggregations