Search in sources :

Example 1 with DotProjectUpdater

use of com.centurylink.mdw.plugin.project.model.DotProjectUpdater in project mdw-designer by CenturyLinkCloud.

the class ProjectConfigurator method addGradleNature.

public void addGradleNature(IProgressMonitor monitor) throws CoreException {
    try {
        DotProjectUpdater dotProj = new DotProjectUpdater(project.getSourceProject());
        dotProj.addNature("org.springsource.ide.eclipse.gradle.core.nature");
        dotProj.save(monitor);
    } catch (Exception ex) {
        throw new CoreException(new Status(Status.ERROR, MdwPlugin.getPluginId(), Status.ERROR, "ERROR: " + ex, ex));
    }
}
Also used : Status(org.eclipse.core.runtime.Status) CoreException(org.eclipse.core.runtime.CoreException) DotProjectUpdater(com.centurylink.mdw.plugin.project.model.DotProjectUpdater) CoreException(org.eclipse.core.runtime.CoreException) InvocationTargetException(java.lang.reflect.InvocationTargetException) JavaModelException(org.eclipse.jdt.core.JavaModelException)

Aggregations

DotProjectUpdater (com.centurylink.mdw.plugin.project.model.DotProjectUpdater)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 CoreException (org.eclipse.core.runtime.CoreException)1 Status (org.eclipse.core.runtime.Status)1 JavaModelException (org.eclipse.jdt.core.JavaModelException)1