Package org.objectstyle.wolips.templateengine

Examples of org.objectstyle.wolips.templateengine.ProjectTemplate


    super.createPageControls(pageContainer);
  }

  @Override
  public void addPages() {
    ProjectTemplate projectTemplate = getProjectTemplate();
    if (projectTemplate == null) {
      _selectTemplatePage = new SelectTemplateWizardPage();
      addPage(_selectTemplatePage);
    }

    _templateInputsPage = new TemplateInputsWizardPage();
    if (projectTemplate != null) {
      _templateInputsPage.setProjectTemplate(projectTemplate);
    }
    if (projectTemplate == null || projectTemplate.getInputs().size() > 0) {
      addPage(_templateInputsPage);
    }

    super.addPages();
  }
View Full Code Here


  @Override
  public IWizardPage getNextPage(IWizardPage page) {
    IWizardPage currentPage = page;
    if (currentPage == _selectTemplatePage) {
      ProjectTemplate projectTemplate = _selectTemplatePage.getSelectedProjectTemplate();
      setProjectTemplate(projectTemplate);
      if (projectTemplate != null && projectTemplate.getInputs().size() == 0) {
        currentPage = _templateInputsPage;
      }
    }
    IWizardPage nextPage = super.getNextPage(currentPage);
    if (nextPage == _templateInputsPage) {
View Full Code Here

  public Image getImage(Object element) {
    return null;
  }

  public String getText(Object element) {
    ProjectTemplate template = (ProjectTemplate) element;
    return template.getName();
  }
View Full Code Here

    }
    getLogger().debug("</incremental build>");
  }

  protected void createInfoPlist(IContainer targetContainer) throws Exception {
    ProjectTemplate infoPListTemplate;
    IProject project = getProject();
    ProjectAdapter projectAdapter = (ProjectAdapter) project.getAdapter(ProjectAdapter.class);
    if (projectAdapter.isFramework()) {
      infoPListTemplate = ProjectTemplate.loadProjectTemplateNamed("MiscTemplates", "FrameworkInfoPList");
    }
    else {
      infoPListTemplate = ProjectTemplate.loadProjectTemplateNamed("MiscTemplates", "ApplicationInfoPList");
    }
    infoPListTemplate.addInput(new ProjectInput("buildProperties", projectAdapter.getBuildProperties()));
   
    targetContainer.refreshLocal(IResource.DEPTH_ZERO, null);
    infoPListTemplate.createProjectContents(project, targetContainer, new NullProgressMonitor());
    IFile infoPList = targetContainer.getFile(new Path("Info.plist"));
    infoPList.refreshLocal(IResource.DEPTH_ZERO, null);
    infoPList.setDerived(true, null);
  }
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.templateengine.ProjectTemplate

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.