Lines 44-51
Link Here
|
44 |
|
44 |
|
45 |
private final static String templatesIconURL = "org/netbeans/core/resources/templates.gif"; // NOI18N |
45 |
private final static String templatesIconURL = "org/netbeans/core/resources/templates.gif"; // NOI18N |
46 |
private final static String templatesIcon32URL = "org/netbeans/core/resources/templates32.gif"; // NOI18N |
46 |
private final static String templatesIcon32URL = "org/netbeans/core/resources/templates32.gif"; // NOI18N |
47 |
private final static String startupIconURL = "org/netbeans/core/resources/startup.gif"; // NOI18N |
|
|
48 |
private final static String startupIcon32URL = "org/netbeans/core/resources/startup32.gif"; // NOI18N |
49 |
private final static String objectTypesIconURL = "org/netbeans/core/resources/objectTypes.gif"; // NOI18N |
47 |
private final static String objectTypesIconURL = "org/netbeans/core/resources/objectTypes.gif"; // NOI18N |
50 |
private final static String objectTypesIcon32URL = "org/netbeans/core/resources/objectTypes32.gif"; // NOI18N |
48 |
private final static String objectTypesIcon32URL = "org/netbeans/core/resources/objectTypes32.gif"; // NOI18N |
51 |
|
49 |
|
Lines 104-115
Link Here
|
104 |
return new TemplatesNode (); |
102 |
return new TemplatesNode (); |
105 |
} |
103 |
} |
106 |
|
104 |
|
107 |
/** Creates startup node. |
|
|
108 |
*/ |
109 |
public static Node createStartup () { |
110 |
return new StartupNode (); |
111 |
} |
112 |
|
113 |
/** Creates object types node. |
105 |
/** Creates object types node. |
114 |
*/ |
106 |
*/ |
115 |
public static Node createObjectTypes () { |
107 |
public static Node createObjectTypes () { |
Lines 207-245
Link Here
|
207 |
return staticActions; |
199 |
return staticActions; |
208 |
} |
200 |
} |
209 |
} |
201 |
} |
210 |
|
|
|
211 |
/** Node representing startup folder */ |
212 |
private static class StartupNode extends IconSubstituteNode { |
213 |
/** generated Serialized Version UID */ |
214 |
static final long serialVersionUID = -8202001968004798680L; |
215 |
|
216 |
private static SystemAction[] staticActions; |
217 |
|
218 |
public StartupNode() { |
219 |
super (NbPlaces.getDefault().startup ().getNodeDelegate (), startupIconURL, startupIcon32URL); |
220 |
super.setDisplayName(bundle.getString("CTL_Startup_name")); |
221 |
super.setShortDescription(bundle.getString("CTL_Startup_hint")); |
222 |
} |
223 |
|
224 |
public HelpCtx getHelpCtx () { |
225 |
return new HelpCtx (StartupNode.class); |
226 |
} |
227 |
|
228 |
public SystemAction[] getActions () { |
229 |
if (staticActions == null) { |
230 |
staticActions = new SystemAction[] { |
231 |
SystemAction.get(PasteAction.class), |
232 |
null, |
233 |
SystemAction.get(ReorderAction.class), |
234 |
null, |
235 |
SystemAction.get(ToolsAction.class), |
236 |
SystemAction.get(PropertiesAction.class) |
237 |
}; |
238 |
} |
239 |
return staticActions; |
240 |
} |
241 |
} |
242 |
|
243 |
|
202 |
|
244 |
/** Node representing object types folder */ |
203 |
/** Node representing object types folder */ |
245 |
private static class ObjectTypesNode extends IconSubstituteNode { |
204 |
private static class ObjectTypesNode extends IconSubstituteNode { |