This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 52993
Collapse All | Expand All

(-)src/org/netbeans/modules/j2ee/deployment/devmodules/api/J2eePlatform.java (+19 lines)
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
    /**
(-)src/org/netbeans/modules/j2ee/deployment/plugins/api/J2eePlatformImpl.java (+9 lines)
Lines 14-19 Link Here
14
package org.netbeans.modules.j2ee.deployment.plugins.api;
14
package org.netbeans.modules.j2ee.deployment.plugins.api;
15
15
16
16
17
import java.awt.Image;
17
import java.beans.PropertyChangeListener;
18
import java.beans.PropertyChangeListener;
18
import java.beans.PropertyChangeSupport;
19
import java.beans.PropertyChangeSupport;
19
import java.io.File;
20
import java.io.File;
Lines 52-57 Link Here
52
     * @return platform's display name.
53
     * @return platform's display name.
53
     */
54
     */
54
    public abstract String getDisplayName();
55
    public abstract String getDisplayName();
56
    
57
    /**
58
     * Return an icon describing the platform. This will be mostly the icon
59
     * used for server instance nodes 
60
     * 
61
     * @return an icon describing the platform
62
     */
63
    public abstract Image getIcon();
55
    
64
    
56
    /**
65
    /**
57
     * Return platform's root directories. This will be mostly server's installation
66
     * Return platform's root directories. This will be mostly server's installation

Return to bug 52993