1 19 20 package org.netbeans.modules.j2ee.deployment.plugins.api; 21 22 23 import java.awt.Image ; 24 import java.beans.PropertyChangeListener ; 25 import java.beans.PropertyChangeSupport ; 26 import java.io.File ; 27 import java.util.Collections ; 28 import java.util.Set ; 29 import org.netbeans.api.java.platform.JavaPlatform; 30 import org.netbeans.modules.j2ee.deployment.devmodules.api.J2eePlatform; 31 import org.netbeans.spi.project.libraries.LibraryImplementation; 32 33 41 public abstract class J2eePlatformImpl { 42 43 44 public static final String PROP_DISPLAY_NAME = "displayName"; 46 public static final String PROP_LIBRARIES = "libraries"; 48 public static final String PROP_PLATFORM_ROOTS = "platformRoots"; 50 private PropertyChangeSupport supp; 51 52 57 public abstract LibraryImplementation[] getLibraries(); 58 59 64 public abstract String getDisplayName(); 65 66 73 public abstract Image getIcon(); 74 75 81 public abstract File [] getPlatformRoots(); 82 83 90 public abstract File [] getToolClasspathEntries(String toolName); 91 92 101 public abstract boolean isToolSupported(String toolName); 102 103 110 public abstract Set getSupportedSpecVersions(); 111 112 126 public Set <String > getSupportedSpecVersions(Object moduleType) { 127 return getSupportedSpecVersions(); 128 } 129 130 137 public abstract Set getSupportedModuleTypes(); 138 139 145 public abstract Set getSupportedJavaPlatformVersions(); 146 147 156 public abstract JavaPlatform getJavaPlatform(); 157 158 164 public final void addPropertyChangeListener(PropertyChangeListener l) { 165 synchronized (this) { 166 if (supp == null) 167 supp = new PropertyChangeSupport (this); 168 } 169 supp.addPropertyChangeListener(l); 170 } 171 172 177 public final void removePropertyChangeListener(PropertyChangeListener l) { 178 if (supp != null) 179 supp.removePropertyChangeListener(l); 180 } 181 182 183 190 public final void firePropertyChange(String propName, Object oldValue, Object newValue) { 191 if (supp != null) 192 supp.firePropertyChange(propName, oldValue, newValue); 193 } 194 195 213 public String getToolProperty(String toolName, String propertyName) { 214 return null; 215 } 216 } 217 | Popular Tags |