Lines 13-18
Link Here
|
13 |
|
13 |
|
14 |
package org.netbeans.modules.j2ee.deployment.devmodules.api; |
14 |
package org.netbeans.modules.j2ee.deployment.devmodules.api; |
15 |
|
15 |
|
|
|
16 |
import java.awt.Image; |
16 |
import java.beans.PropertyChangeEvent; |
17 |
import java.beans.PropertyChangeEvent; |
17 |
import java.beans.PropertyChangeListener; |
18 |
import java.beans.PropertyChangeListener; |
18 |
import java.io.File; |
19 |
import java.io.File; |
Lines 26-31
Link Here
|
26 |
import org.netbeans.spi.project.libraries.LibraryImplementation; |
27 |
import org.netbeans.spi.project.libraries.LibraryImplementation; |
27 |
import org.openide.filesystems.FileUtil; |
28 |
import org.openide.filesystems.FileUtil; |
28 |
import org.openide.filesystems.URLMapper; |
29 |
import org.openide.filesystems.URLMapper; |
|
|
30 |
import org.openide.util.Utilities; |
29 |
|
31 |
|
30 |
|
32 |
|
31 |
/** |
33 |
/** |
Lines 46-51
Link Here
|
46 |
/** Platform roots property */ |
48 |
/** Platform roots property */ |
47 |
public static final String PROP_PLATFORM_ROOTS = "platformRoots"; //NOI18N |
49 |
public static final String PROP_PLATFORM_ROOTS = "platformRoots"; //NOI18N |
48 |
|
50 |
|
|
|
51 |
private static final class DefaultImageProvider { |
52 |
private static final Image IMAGE = Utilities.loadImage("org/netbeans/modules/j2ee/deployment/impl/ui/resources/ServerRegistry.gif"); |
53 |
} |
54 |
|
49 |
private J2eePlatformImpl impl; |
55 |
private J2eePlatformImpl impl; |
50 |
private File[] classpathCache; |
56 |
private File[] classpathCache; |
51 |
private String currentClasspath; |
57 |
private String currentClasspath; |
Lines 157-162
Link Here
|
157 |
*/ |
163 |
*/ |
158 |
public String getDisplayName() { |
164 |
public String getDisplayName() { |
159 |
return impl.getDisplayName(); |
165 |
return impl.getDisplayName(); |
|
|
166 |
} |
167 |
|
168 |
/** |
169 |
* Return platform's icon. |
170 |
* |
171 |
* @return platform's icon. |
172 |
*/ |
173 |
public Image getIcon() { |
174 |
Image result = impl.getIcon(); |
175 |
if (result == null) |
176 |
result = DefaultImageProvider.IMAGE; |
177 |
|
178 |
return result; |
160 |
} |
179 |
} |
161 |
|
180 |
|
162 |
/** |
181 |
/** |