Package de.innovationgate.eclipse.wgadesigner.natures

Examples of de.innovationgate.eclipse.wgadesigner.natures.WGADesign


      WorkbenchUtils.showErrorDialog(getShell(), "Plugin creation failed", message);
      return false;
    } else {
      try {
        // create new project
        WGADesign designProject = WGADesignFactory.createDesign(project, getPluginTemplate());
       
        // register with runtime
        WGARuntime runtime = _page.getRuntime();
        if (runtime != null) {         
          WGADesignStructureHelper.createDirklink(runtime.getPluginRoot(), designProject.getDesignFolder(), _page.getPluginName());
         
         
          try {
            // elapse dirlink folder in navigation views
            WorkbenchUtils.setNavigationViewSelection(new SingleStructuredSelection(runtime.getPluginRoot().getFolder(_page.getPluginName())));
          } catch (Exception e) {           
          }
        }
                     
        // modify plugin config and open plugin design editor
        IFile syncInfo = new WGADesignStructureHelper(designProject.getDesignFolder()).getSyncInfo();
        WGADesignConfigurationModel model = new WGADesignConfigurationModelWrapper(syncInfo);
       

                model.setVersionCompliance(Activator.DEFAULT_VERSION_COMPLIANCE);
              
View Full Code Here


    IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();   
    IProject project = root.getProject(_page.getDesignName());
   
    if(!project.exists()){
      try {               
        WGADesign design = WGADesignFactory.createDesign(project, _page.getTemplate());
               
        try {
          WGADesignStructureHelper helper = new WGADesignStructureHelper(design.getDesignFolder());
          WorkbenchUtils.setNavigationViewSelection(new SingleStructuredSelection(helper.getSyncInfo()));
          WorkbenchUtils.setNavigationViewSelection(new SingleStructuredSelection(design.getDesignFolder()));
        } catch (Exception e) {       
        }
       
        return true;
      } catch (CoreException e) {
View Full Code Here

    if (!project.exists()) {
      project.create(null);
    }
    project.open(null);
    JDTUtils.addNature(project, WGADesignerPlugin.NATURE_WGA_DESIGN);     
    WGADesign design = (WGADesign)project.getNature(WGADesignerPlugin.NATURE_WGA_DESIGN);
    if (template != null) {
      WGADesignFactory.createDesign(design.getDesignFolder(), design.getProject().getName(), template)
    }
    return design;
  }
View Full Code Here

TOP

Related Classes of de.innovationgate.eclipse.wgadesigner.natures.WGADesign

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.