Search in sources :

Example 16 with ProjectUpdater

use of com.centurylink.mdw.plugin.project.assembly.ProjectUpdater in project mdw-designer by CenturyLinkCloud.

the class AdminUi method removeFrom.

public boolean removeFrom(WorkflowProject project, IProgressMonitor monitor) throws ExtensionModuleException, InterruptedException {
    monitor.worked(5);
    try {
        ProjectUpdater updater = new ProjectUpdater(project, MdwPlugin.getSettings());
        updater.removeWarLib("mdw-admin.war", new SubProgressMonitor(monitor, 90));
        monitor.worked(5);
    } catch (InterruptedException ex) {
        throw ex;
    } catch (Exception ex) {
        throw new ExtensionModuleException(ex.getMessage(), ex);
    }
    return true;
}
Also used : ProjectUpdater(com.centurylink.mdw.plugin.project.assembly.ProjectUpdater) SubProgressMonitor(org.eclipse.core.runtime.SubProgressMonitor) IOException(java.io.IOException)

Aggregations

ProjectUpdater (com.centurylink.mdw.plugin.project.assembly.ProjectUpdater)16 SubProgressMonitor (org.eclipse.core.runtime.SubProgressMonitor)11 IOException (java.io.IOException)7 CoreException (org.eclipse.core.runtime.CoreException)7 IProject (org.eclipse.core.resources.IProject)4 ExtensionModulesUpdater (com.centurylink.mdw.plugin.project.assembly.ExtensionModulesUpdater)3 ProjectConfigurator (com.centurylink.mdw.plugin.project.assembly.ProjectConfigurator)3 WorkflowProject (com.centurylink.mdw.plugin.project.model.WorkflowProject)3 MdwProgressMonitorDialog (com.centurylink.mdw.plugin.designer.dialogs.MdwProgressMonitorDialog)2 InvocationTargetException (java.lang.reflect.InvocationTargetException)2 XmlException (org.apache.xmlbeans.XmlException)2 IProgressMonitor (org.eclipse.core.runtime.IProgressMonitor)2 ProgressMonitorDialog (org.eclipse.jface.dialogs.ProgressMonitorDialog)2 IRunnableWithProgress (org.eclipse.jface.operation.IRunnableWithProgress)2 IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)2 PropertyEditor (com.centurylink.mdw.plugin.designer.properties.editor.PropertyEditor)1 ValueChangeListener (com.centurylink.mdw.plugin.designer.properties.editor.ValueChangeListener)1 MdwSettings (com.centurylink.mdw.plugin.preferences.model.MdwSettings)1 ProjectInflator (com.centurylink.mdw.plugin.project.assembly.ProjectInflator)1 GradleBuildFile (com.centurylink.mdw.plugin.project.model.GradleBuildFile)1