1 19 20 package org.netbeans.modules.j2ee.deployment.common.api; 21 22 import java.beans.Customizer ; 23 import org.netbeans.spi.project.libraries.LibraryImplementation; 24 import org.netbeans.spi.project.libraries.LibraryTypeProvider; 25 import org.netbeans.spi.project.libraries.support.LibrariesSupport; 26 import org.openide.util.Lookup; 27 import org.openide.util.NbBundle; 28 29 36 public final class J2eeLibraryTypeProvider implements LibraryTypeProvider { 37 38 39 public static final String LIBRARY_TYPE = "j2ee"; 41 42 public static final String VOLUME_TYPE_CLASSPATH = "classpath"; 44 public static final String VOLUME_TYPE_SRC = "src"; 46 public static final String VOLUME_TYPE_JAVADOC = "javadoc"; 48 public static final String [] VOLUME_TYPES = new String [] { 49 VOLUME_TYPE_CLASSPATH, 50 VOLUME_TYPE_SRC, 51 VOLUME_TYPE_JAVADOC 52 }; 53 54 55 56 public J2eeLibraryTypeProvider() { 57 } 58 59 65 public String getDisplayName() { 66 return NbBundle.getMessage(J2eeLibraryTypeProvider.class,"TXT_J2eeLibraryType"); } 68 69 74 public String getLibraryType() { 75 return LIBRARY_TYPE; 76 } 77 78 84 public String [] getSupportedVolumeTypes() { 85 return VOLUME_TYPES; 86 } 87 88 93 public LibraryImplementation createLibrary() { 94 return LibrariesSupport.createLibraryImplementation(LIBRARY_TYPE, VOLUME_TYPES); 95 } 96 97 100 public void libraryDeleted(LibraryImplementation libraryImpl) { 101 } 102 103 106 public void libraryCreated(LibraryImplementation libraryImpl) { 107 } 108 109 112 public Customizer getCustomizer(String volumeType) { 113 return null; 114 } 115 116 120 public Lookup getLookup() { 121 return Lookup.EMPTY; 122 } 123 } 124 | Popular Tags |