Lines 54-59
Link Here
|
54 |
import org.netbeans.modules.profiler.api.JavaPlatform; |
54 |
import org.netbeans.modules.profiler.api.JavaPlatform; |
55 |
import org.netbeans.modules.profiler.api.ProfilerDialogs; |
55 |
import org.netbeans.modules.profiler.api.ProfilerDialogs; |
56 |
import org.openide.DialogDisplayer; |
56 |
import org.openide.DialogDisplayer; |
|
|
57 |
import org.openide.util.HelpCtx; |
57 |
|
58 |
|
58 |
|
59 |
|
59 |
/** |
60 |
/** |
Lines 72-78
Link Here
|
72 |
"JavaPlatformSelector_CannotUsePlatform=The Java Platform this project runs on cannot be used for profiling.", |
73 |
"JavaPlatformSelector_CannotUsePlatform=The Java Platform this project runs on cannot be used for profiling.", |
73 |
"JavaPlatformSelector_ListAccessName=List of Java Platforms available for profiling" |
74 |
"JavaPlatformSelector_ListAccessName=List of Java Platforms available for profiling" |
74 |
}) |
75 |
}) |
75 |
public final class JavaPlatformSelector extends JPanel implements ListSelectionListener { |
76 |
public final class JavaPlatformSelector extends JPanel implements ListSelectionListener, HelpCtx.Provider { |
76 |
//~ Inner Classes ------------------------------------------------------------------------------------------------------------ |
77 |
//~ Inner Classes ------------------------------------------------------------------------------------------------------------ |
77 |
|
78 |
|
78 |
public static class JPListModel extends AbstractListModel { |
79 |
public static class JPListModel extends AbstractListModel { |
Lines 98-103
Link Here
|
98 |
} |
99 |
} |
99 |
|
100 |
|
100 |
//~ Static fields/initializers ----------------------------------------------------------------------------------------------- |
101 |
//~ Static fields/initializers ----------------------------------------------------------------------------------------------- |
|
|
102 |
private static final String HELP_CTX_KEY = "JavaPlatformSelector.HelpCtx"; |
103 |
private static final HelpCtx HELP_CTX = new HelpCtx(HELP_CTX_KEY); |
101 |
private static JavaPlatformSelector defaultPlatform; |
104 |
private static JavaPlatformSelector defaultPlatform; |
102 |
|
105 |
|
103 |
//~ Instance fields ---------------------------------------------------------------------------------------------------------- |
106 |
//~ Instance fields ---------------------------------------------------------------------------------------------------------- |
Lines 134-139
Link Here
|
134 |
|
137 |
|
135 |
//~ Methods ------------------------------------------------------------------------------------------------------------------ |
138 |
//~ Methods ------------------------------------------------------------------------------------------------------------------ |
136 |
|
139 |
|
|
|
140 |
@Override |
141 |
public HelpCtx getHelpCtx() { |
142 |
return HELP_CTX; |
143 |
} |
144 |
|
137 |
public static synchronized JavaPlatformSelector getDefault() { |
145 |
public static synchronized JavaPlatformSelector getDefault() { |
138 |
if (defaultPlatform == null) { |
146 |
if (defaultPlatform == null) { |
139 |
defaultPlatform = new JavaPlatformSelector(); |
147 |
defaultPlatform = new JavaPlatformSelector(); |