Package org.springframework.ide.eclipse.wizard.template

Examples of org.springframework.ide.eclipse.wizard.template.SimpleProject


    List<SimpleProject> projects = new ArrayList<SimpleProject>();
    for (ContentItem item : projectItems) {
      if (SimpleProjectFactory.isSimpleProject(item)) {

        SimpleProject simpleProject = SimpleProjectFactory.getSimpleProject(item);
        if (simpleProject != null) {
          BundleContentLoader loader = new BundleContentLoader(item, WizardPlugin.getDefault().getBundle(),
              this);

          loader.load(monitor);

          // Now get the project install directory so that the project
          // data can be read from it
          File projectDir = new File(baseDir, item.getPath());

          TemplateProjectData data = new TemplateProjectData(projectDir);
          data.read();

          // Important that the data be set, otherwise the simple
          // project cannot be processed
          simpleProject.setTemplateData(data);

          projects.add(simpleProject);
        }

      }
View Full Code Here


  public static final String SIMPLE_JAVA_TEMPLATE_ID = "org.springframework.templates.simple.java";

  public static SimpleProject getSimpleProject(ContentItem item) {
    String templateId = item.getId();
    if (SIMPLE_JAVA_TEMPLATE_ID.equals(templateId)) {
      return new SimpleProject(item, null, true);
    }
    else if (SIMPLE_MAVEN_TEMPLATE_ID.equals(templateId)) {
      return new SimpleProject(item, null, false);
    }
    else if (SIMPLE_WEB_MAVEN_TEMPLATE_ID.equals(templateId)) {
      return new SimpleProject(item, null, false);
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.wizard.template.SimpleProject

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.