1 19 20 package org.netbeans.modules.java.j2seproject; 21 22 import java.io.IOException ; 23 import org.netbeans.api.project.Project; 24 import org.netbeans.spi.project.support.ant.AntBasedProjectType; 25 import org.netbeans.spi.project.support.ant.AntProjectHelper; 26 27 31 public final class J2SEProjectType implements AntBasedProjectType { 32 33 public static final String TYPE = "org.netbeans.modules.java.j2seproject"; private static final String PROJECT_CONFIGURATION_NAME = "data"; public static final String PROJECT_CONFIGURATION_NAMESPACE = "http://www.netbeans.org/ns/j2se-project/3"; private static final String PRIVATE_CONFIGURATION_NAME = "data"; private static final String PRIVATE_CONFIGURATION_NAMESPACE = "http://www.netbeans.org/ns/j2se-project-private/1"; 39 40 public J2SEProjectType() {} 41 42 public String getType() { 43 return TYPE; 44 } 45 46 public Project createProject(AntProjectHelper helper) throws IOException { 47 return new J2SEProject(helper); 48 } 49 50 public String getPrimaryConfigurationDataElementName(boolean shared) { 51 return shared ? PROJECT_CONFIGURATION_NAME : PRIVATE_CONFIGURATION_NAME; 52 } 53 54 public String getPrimaryConfigurationDataElementNamespace(boolean shared) { 55 return shared ? PROJECT_CONFIGURATION_NAMESPACE : PRIVATE_CONFIGURATION_NAMESPACE; 56 } 57 58 } 59 | Popular Tags |