Package de.innovationgate.eclipse.wgadesigner.editors.helpers

Examples of de.innovationgate.eclipse.wgadesigner.editors.helpers.WGADeploymentManager


          JDTUtils.addNature(_project, WGADesignerPlugin.NATURE_WGA_RUNTIME);     
         
          WGARuntime runtime = (WGARuntime) _project.getNature(WGADesignerPlugin.NATURE_WGA_RUNTIME);
         
          // set wga distribution
          WGADeploymentManager manager = WGADesignerPlugin.getDefault().getWGADeploymentManager();
          WGADeployment deployment = null;
          if (manager.hasDeployment(WGADeploymentManager.DEFAULT_DEPLOYMENT_NAME)) {
            deployment = manager.getDefaultDeployment();
          } else if (manager.getDeployments().size() > 0) {
            deployment = manager.getDeployments().get(0);
          }
          if (deployment != null) {
            runtime.getConfiguration().setWgaDistribution(deployment.getName());
          }
         
View Full Code Here


  }

  @Override
  protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws CoreException {
    try {
      WGADeploymentManager manager = WGADesignerPlugin.getDefault().getWGADeploymentManager();
      WGADeployment deployment = manager.getDeployment(getProject().getName());
      if (deployment != null) {
        IResourceDelta delta = getDelta(getProject());
        if (delta != null) {
          if (WGADesignerPlugin.getDefault().isDebugging()) {
            System.out.println("Incremental update of WGA deployment '" + deployment.getName() + "'.");
          }
          deployment.updateWGA(delta, monitor);         
        } else {
          if (WGADesignerPlugin.getDefault().isDebugging()) {
            System.out.println("Full update of WGA deployment '" + deployment.getName() + "'.");
          }
          deployment.updateWGA(getProject(), monitor);
        }
      } else {       
        manager.createDeployment(getProject(), monitor);
      }
    } catch (Exception e) {
      throw new CoreException(new Status(Status.ERROR, WGADesignerPlugin.PLUGIN_ID, "Unable to create or update wga deployment.", e));
    }
    return null;
View Full Code Here

     
      path = new Path("resources/wga/defaultPlugins");
      URL defaultPluginsURL = FileLocator.find(bundle, path, null);
      _wgaDefaultPluginsDir = new File (FileLocator.toFileURL(defaultPluginsURL).getPath());
     
      _wgaDeploymentManager = new WGADeploymentManager();     
      _wgaDeploymentManager.init(new File(getStateLocation().toFile(), "wgadeployments"));
     
      initWGADistributions();
    } catch (Exception e) {
      logError("Unable to initialize plugin '" + PLUGIN_ID + "'.", e);
View Full Code Here

TOP

Related Classes of de.innovationgate.eclipse.wgadesigner.editors.helpers.WGADeploymentManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.