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 33744
Collapse All | Expand All

(-)core/execution/src/org/netbeans/core/execution/Install.java (+10 lines)
Lines 43-48 Link Here
43
import org.netbeans.TopSecurityManager;
43
import org.netbeans.TopSecurityManager;
44
44
45
import org.netbeans.core.ModuleActions;
45
import org.netbeans.core.ModuleActions;
46
import org.openide.ErrorManager;
46
47
47
/**
48
/**
48
 * Registers security manager for execution.
49
 * Registers security manager for execution.
Lines 126-131 Link Here
126
    private static void startFolder(DataFolder f) {
127
    private static void startFolder(DataFolder f) {
127
        DataObject[] obj = f.getChildren();
128
        DataObject[] obj = f.getChildren();
128
        if (obj.length == 0) return;
129
        if (obj.length == 0) return;
130
        ErrorManager err = ErrorManager.getDefault();
131
        if (err.isLoggable(ErrorManager.WARNING)) {
132
            StringBuffer b = new StringBuffer("Warning - using the Startup folder is deprecated. Found objects:"); // NOI18N
133
            for (int i = 0; i < obj.length; i++) {
134
                b.append(' '); // NOI18N
135
                b.append(obj[i].getPrimaryFile().getPath());
136
            }
137
            err.log(ErrorManager.WARNING, b.toString());
138
        }
129
        ExecuteAction.execute(obj, true);
139
        ExecuteAction.execute(obj, true);
130
    }
140
    }
131
141
(-)core/ide/src/org/netbeans/core/ide/resources/layer.xml (-5 / +1 lines)
Lines 8-14 Link Here
8
http://www.sun.com/
8
http://www.sun.com/
9
9
10
The Original Code is NetBeans. The Initial Developer of the Original
10
The Original Code is NetBeans. The Initial Developer of the Original
11
Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun
11
Code is Sun Microsystems, Inc. Portions Copyright 1997-2003 Sun
12
Microsystems, Inc. All Rights Reserved.
12
Microsystems, Inc. All Rights Reserved.
13
-->
13
-->
14
<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.0//EN" "http://www.netbeans.org/dtds/filesystem-1_0.dtd">
14
<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.0//EN" "http://www.netbeans.org/dtds/filesystem-1_0.dtd">
Lines 24-33 Link Here
24
        </folder>
24
        </folder>
25
    </folder>
25
    </folder>
26
    
26
    
27
    <folder name="Startup">
28
        <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.core.Bundle"/>
29
    </folder>
30
        
31
    <folder name="Services">
27
    <folder name="Services">
32
        <folder name="IndentEngine">
28
        <folder name="IndentEngine">
33
            <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/core/resources/indentEngines.gif" />
29
            <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/core/resources/indentEngines.gif" />
(-)core/src/org/netbeans/core/Bundle.properties (-3 lines)
Lines 89-96 Link Here
89
CTL_Menu_hint=Provides access to the menu configuration.
89
CTL_Menu_hint=Provides access to the menu configuration.
90
CTL_Actions_name=Actions
90
CTL_Actions_name=Actions
91
CTL_Actions_hint=Provides access to all available actions.
91
CTL_Actions_hint=Provides access to all available actions.
92
CTL_Startup_name=Startup
93
CTL_Startup_hint=Contains items that are executed during IDE startup.
94
92
95
#FSPoolNode
93
#FSPoolNode
96
CTL_FSPool_name=Filesystems Settings
94
CTL_FSPool_name=Filesystems Settings
Lines 535-541 Link Here
535
Menu/Window=&Window
533
Menu/Window=&Window
536
Menu/Help=&Help
534
Menu/Help=&Help
537
Services/MIMEResolver=File Types
535
Services/MIMEResolver=File Types
538
Startup=Startup
539
Templates=Templates
536
Templates=Templates
540
Toolbars=Toolbars
537
Toolbars=Toolbars
541
Toolbars/Build=Build
538
Toolbars/Build=Build
(-)core/src/org/netbeans/core/ui/UINodes.java (-41 lines)
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 {
(-)core/ui/src/org/netbeans/core/ui/resources/layer.xml (-6 / +1 lines)
Lines 8-14 Link Here
8
http://www.sun.com/
8
http://www.sun.com/
9
9
10
The Original Code is NetBeans. The Initial Developer of the Original
10
The Original Code is NetBeans. The Initial Developer of the Original
11
Code is Sun Microsystems, Inc. Portions Copyright 1997-2002 Sun
11
Code is Sun Microsystems, Inc. Portions Copyright 1997-2003 Sun
12
Microsystems, Inc. All Rights Reserved.
12
Microsystems, Inc. All Rights Reserved.
13
-->
13
-->
14
<?xml-stylesheet type="text/xml" href="http://openide.netbeans.org/fs/filesystem.xsl"?>
14
<?xml-stylesheet type="text/xml" href="http://openide.netbeans.org/fs/filesystem.xsl"?>
Lines 583-593 Link Here
583
583
584
                    <file name="org-openide-text-PrintSettings.shadow">
584
                    <file name="org-openide-text-PrintSettings.shadow">
585
                        <attr name="originalFile" stringvalue="Services/org-openide-text-PrintSettings.settings"/>
585
                        <attr name="originalFile" stringvalue="Services/org-openide-text-PrintSettings.settings"/>
586
                    </file>
587
588
                    <file name="Startup.instance">
589
                        <attr name="instanceCreate" methodvalue="org.netbeans.core.ui.UINodes.createStartup" />
590
                        <attr name="instanceClass" stringvalue="org.openide.nodes.Node" />
591
                    </file>
586
                    </file>
592
587
593
                    <file name="org-netbeans-core-IDESettings.shadow">
588
                    <file name="org-netbeans-core-IDESettings.shadow">
(-)openide/api/doc/org/openide/modules/doc-files/api.html (-15 lines)
Lines 560-580 Link Here
560
560
561
<li>Create templates in the folder <samp>Templates/</samp>.</li>
561
<li>Create templates in the folder <samp>Templates/</samp>.</li>
562
562
563
<li><a name="startup-files">Add a startup file to
564
<samp>Startup/</samp>.</a> It should be
565
566
<a href="@OPENIDE/EXECUTION@/org/openide/cookies/ExecCookie.html">executable</a>
567
568
(typically a Java source file with associated classfile). Startup
569
files should normally be executed when first added by an
570
<code>installed</code> method, and they will be automatically executed
571
by the IDE every time it starts up (recompiling first if needed). They
572
are generally intended to provide a way for users to customize some
573
aspects of configuration using arbitrary code as an alternative to a
574
module's <code>restored()</code> method. (But if your configuration can
575
be decently controlled using normal GUI settings than this should be done.
576
Using the startup folder is mainly for expert users with complex needs.)</li>
577
578
<li>Other things such as bookmarks, Component Palette beans, Welcome
563
<li>Other things such as bookmarks, Component Palette beans, Welcome
579
panel buttons, and so on - according to the
564
panel buttons, and so on - according to the
580
565
(-)usersguide/javahelp/org/netbeans/modules/usersguide/Map.jhm (-3 lines)
Lines 309-315 Link Here
309
<mapID target="run.run" url="run/run.html" />
309
<mapID target="run.run" url="run/run.html" />
310
<mapID target="run.debugmode" url="run/run_debug.html" />
310
<mapID target="run.debugmode" url="run/run_debug.html" />
311
<mapID target="run.debug.applet" url="run/run_applet.html" />
311
<mapID target="run.debug.applet" url="run/run_applet.html" />
312
<mapID target="run.startup" url="run/startup.html" />
313
<mapID target="run.arguments" url="run/arguments.html" />
312
<mapID target="run.arguments" url="run/arguments.html" />
314
<mapID target="run.options.jump" url="run/run_options_jump.html" />
313
<mapID target="run.options.jump" url="run/run_options_jump.html" />
315
<mapID target="run.options" url="run/options.html" />
314
<mapID target="run.options" url="run/options.html" />
Lines 1505-1511 Link Here
1505
   <mapID target="org.openide.text.CloneableEditor" url="pending.html" />
1504
   <mapID target="org.openide.text.CloneableEditor" url="pending.html" />
1506
   <mapID target="org.openide.actions.ClassNamePanel" url="pending.html" />
1505
   <mapID target="org.openide.actions.ClassNamePanel" url="pending.html" />
1507
1506
1508
   <mapID target="org.netbeans.core.ui.UINodes$StartupNode" url="run/startup.html" />
1509
   <mapID target="org.netbeans.core.ui.WelcomeFolderNode" url="configure/welcome_node.html" />
1507
   <mapID target="org.netbeans.core.ui.WelcomeFolderNode" url="configure/welcome_node.html" />
1510
1508
1511
1509
Lines 1618-1624 Link Here
1618
   <mapID target="org.netbeans.core.Desktop$TemplatesNode" url="pending.html" /> 
1616
   <mapID target="org.netbeans.core.Desktop$TemplatesNode" url="pending.html" /> 
1619
   <mapID target="org.netbeans.core.DesktopNode$TemplatesNode" url="pending.html" /> 
1617
   <mapID target="org.netbeans.core.DesktopNode$TemplatesNode" url="pending.html" /> 
1620
   <mapID target="org.netbeans.core.DesktopNode" url="pending.html" /> 
1618
   <mapID target="org.netbeans.core.DesktopNode" url="pending.html" /> 
1621
   <mapID target="org.netbeans.core.DesktopNode$StartupNode" url="run/startup.html" />      
1622
   <mapID target="org.openide.actions.FindAction" url="pending.html" />
1619
   <mapID target="org.openide.actions.FindAction" url="pending.html" />
1623
   <mapID target="org.openide.actions.ReplaceAction" url="pending.html" />
1620
   <mapID target="org.openide.actions.ReplaceAction" url="pending.html" />
1624
 
1621
 
(-)usersguide/javahelp/org/netbeans/modules/usersguide/ide-idx.xml (-2 lines)
Lines 209-215 Link Here
209
      <indexitem text="deleting" target="compile.delete" />
209
      <indexitem text="deleting" target="compile.delete" />
210
      <indexitem text="setting breakpoints on" target="debug.breakpoint.class" />
210
      <indexitem text="setting breakpoints on" target="debug.breakpoint.class" />
211
      <indexitem text="running" target="run.run" />
211
      <indexitem text="running" target="run.run" />
212
      <indexitem text="running at startup" target="run.startup" />
213
      <indexitem text="setting default compiler for" target="compile.default" />
212
      <indexitem text="setting default compiler for" target="compile.default" />
214
      <indexitem text="setting default executor for" target="run.project" />
213
      <indexitem text="setting default executor for" target="run.project" />
215
      <indexitem text="setting default debugger for" target="debug.debugger.project_default" />
214
      <indexitem text="setting default debugger for" target="debug.debugger.project_default" />
Lines 1175-1181 Link Here
1175
      <indexitem text="specifying program arguments" target="run.arguments" />
1174
      <indexitem text="specifying program arguments" target="run.arguments" />
1176
      <indexitem text="specifying a main class" target="run.mainclass" />
1175
      <indexitem text="specifying a main class" target="run.mainclass" />
1177
      <indexitem text="specifying an executor" target="run.project" />
1176
      <indexitem text="specifying an executor" target="run.project" />
1178
      <indexitem text="when the IDE starts" target="run.startup" />
1179
   </indexitem>
1177
   </indexitem>
1180
   <indexitem text="runtime options for the environment" target="run.options"></indexitem>
1178
   <indexitem text="runtime options for the environment" target="run.options"></indexitem>
1181
   <indexitem text="Runtime tab, in Explorer" target="objects.runtime"></indexitem>
1179
   <indexitem text="Runtime tab, in Explorer" target="objects.runtime"></indexitem>
(-)usersguide/javahelp/org/netbeans/modules/usersguide/ide-toc.xml (-1 lines)
Lines 187-193 Link Here
187
    <tocitem text="Running a Program in Debug Mode" target="run.debugmode" />
187
    <tocitem text="Running a Program in Debug Mode" target="run.debugmode" />
188
    <tocitem text="Running and Debugging an Applet" target="run.debug.applet" />
188
    <tocitem text="Running and Debugging an Applet" target="run.debug.applet" />
189
    <tocitem text="Specifying the Main Class to Run" target="run.mainclass" />
189
    <tocitem text="Specifying the Main Class to Run" target="run.mainclass" />
190
    <tocitem text="Running a Class When the IDE Starts" target="run.startup" />
191
    <tocitem text="Running Java Sources in a Specific Locale" target="run.locale" />
190
    <tocitem text="Running Java Sources in a Specific Locale" target="run.locale" />
192
    <tocitem text="Running a Program on a 64-Bit Java Virtual Machine" target="run.64bit.jvm" />
191
    <tocitem text="Running a Program on a 64-Bit Java Virtual Machine" target="run.64bit.jvm" />
193
  </tocitem>
192
  </tocitem>
(-)usersguide/javahelp/org/netbeans/modules/usersguide/run/run_jump.html (-2 lines)
Lines 36-43 Link Here
36
<br>
36
<br>
37
<a href="mainclass.html">Specifying the Main Class to Run for a Project</a>
37
<a href="mainclass.html">Specifying the Main Class to Run for a Project</a>
38
<br>
38
<br>
39
<a href="startup.html">Running a Class When the IDE Starts</a>
40
<br>
41
  <a href="locale.html">Running Java Sources in a Specific Locale</a> </blockquote>
39
  <a href="locale.html">Running Java Sources in a Specific Locale</a> </blockquote>
42
<hr>
40
<hr>
43
<small><a href="../credits.html">Legal Notices</a></small> 
41
<small><a href="../credits.html">Legal Notices</a></small> 

Return to bug 33744