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

(-)a/profiler/src/org/netbeans/modules/profiler/Bundle.properties (+2 lines)
Lines 76-81 Link Here
76
DrillDownWindow_DrillDownCaption=DrillDown
76
DrillDownWindow_DrillDownCaption=DrillDown
77
DrillDownWindow_DrillDownAccessDescr=High-level category view of where application spends time
77
DrillDownWindow_DrillDownAccessDescr=High-level category view of where application spends time
78
78
79
Services/MIMEResolver/NpsResolver.xml=Nps Files
80
79
ThreadsWindow_ThreadsWindowName=Threads
81
ThreadsWindow_ThreadsWindowName=Threads
80
ThreadsWindow_ThreadsTimelineTabName=Timeline
82
ThreadsWindow_ThreadsTimelineTabName=Timeline
81
ThreadsWindow_ThreadsTableTabName=Table
83
ThreadsWindow_ThreadsTableTabName=Table
(-)f9a4babcf659 (+13 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
To change this template, choose Tools | Templates
4
and open the template in the editor.
5
-->
6
<!DOCTYPE MIME-resolver PUBLIC "-//NetBeans//DTD MIME Resolver 1.0//EN" "http://www.netbeans.org/dtds/mime-resolver-1_0.dtd">
7
<MIME-resolver>
8
    <file>
9
        <ext name="nps"/>
10
<!--        <magic hex="426e52"/> -->
11
        <resolver mime="application/x-netbeans-profiler"/>
12
    </file>
13
</MIME-resolver>
(-)a/profiler/src/org/netbeans/modules/profiler/mf-layer.xml (+63 lines)
Lines 81-86 Link Here
81
                    <file name="org-netbeans-modules-profiler-actions-ProfileSingleActionPopup.instance">
81
                    <file name="org-netbeans-modules-profiler-actions-ProfileSingleActionPopup.instance">
82
                        <attr name="instanceCreate" methodvalue="org.netbeans.modules.profiler.actions.AntActions.profileSinglePopup"/>
82
                        <attr name="instanceCreate" methodvalue="org.netbeans.modules.profiler.actions.AntActions.profileSinglePopup"/>
83
                        <attr name="position" intvalue="660"/>
83
                        <attr name="position" intvalue="660"/>
84
                    </file>
85
                </folder>
86
            </folder>
87
        </folder>
88
        <folder name="application">
89
            <folder name="x-netbeans-profiler">
90
                <folder name="Actions">
91
                    <file name="org-openide-actions-OpenAction.instance">
92
                        <attr name="position" intvalue="300"/>
93
                    </file>
94
                    <file name="org-openide-actions-CopyAction.instance">
95
                        <attr name="position" intvalue="300"/>
96
                    </file>
97
                    <file name="org-openide-actions-CutAction.instance">
98
                        <attr name="position" intvalue="200"/>
99
                    </file>
100
                    <file name="org-openide-actions-DeleteAction.instance">
101
                        <attr name="position" intvalue="500"/>
102
                    </file>
103
                    <file name="org-openide-actions-FileSystemAction.instance">
104
                        <attr name="position" intvalue="1000"/>
105
                    </file>
106
                    <file name="org-openide-actions-PropertiesAction.instance">
107
                        <attr name="position" intvalue="1300"/>
108
                    </file>
109
                    <file name="org-openide-actions-RenameAction.instance">
110
                        <attr name="position" intvalue="600"/>
111
                    </file>
112
                    <file name="org-openide-actions-ToolsAction.instance">
113
                        <attr name="position" intvalue="1200"/>
114
                    </file>
115
                    <file name="sep-1.instance">
116
                        <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
117
                        <attr name="position" intvalue="100"/>
118
                    </file>
119
                    <file name="sep-2.instance">
120
                        <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
121
                        <attr name="position" intvalue="400"/>
122
                    </file>
123
                    <file name="sep-3.instance">
124
                        <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
125
                        <attr name="position" intvalue="700"/>
126
                    </file>
127
                    <file name="sep-4.instance">
128
                        <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
129
                        <attr name="position" intvalue="900"/>
130
                    </file>
131
                    <file name="sep-5.instance">
132
                        <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
133
                        <attr name="position" intvalue="1100"/>
134
                    </file>
135
                </folder>
136
                <folder name="Factories">
137
                    <file name="NpsDataLoader.instance">
138
                        <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/profiler/resources/snapshotDataObject.png"/>
139
                        <attr name="dataObjectClass" stringvalue="org.netbeans.modules.profiler.ui.NpsDataObject"/>
140
                        <attr name="instanceCreate" methodvalue="org.openide.loaders.DataLoaderPool.factory"/>
141
                        <attr name="mimeType" stringvalue="x-application/nps"/>
84
                    </file>
142
                    </file>
85
                </folder>
143
                </folder>
86
            </folder>
144
            </folder>
Lines 318-323 Link Here
318
            </file>
376
            </file>
319
       <!-- Merge before 3rd party help: -->
377
       <!-- Merge before 3rd party help: -->
320
        </folder>
378
        </folder>
379
        <folder name="MIMEResolver">
380
            <file name="NpsResolver.xml" url="NpsResolver.xml">
381
                <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.profiler.Bundle"/>
382
            </file>
383
        </folder>
321
    </folder>
384
    </folder>
322
385
323
    <folder name="NBProfiler">
386
    <folder name="NBProfiler">
(-)a/profiler/src/org/netbeans/modules/profiler/ui/Bundle.properties (+1 lines)
Lines 103-108 Link Here
103
ImagePreviewPanel_GeneratingPreviewMsg=Generating preview...
103
ImagePreviewPanel_GeneratingPreviewMsg=Generating preview...
104
ImagePreviewPanel_NoImageMsg=No image
104
ImagePreviewPanel_NoImageMsg=No image
105
105
106
LBL_Nps_loader_name=Nps Files
106
ManualMethodSelect_SelectMethodsDialogCaption=Define New Root Method
107
ManualMethodSelect_SelectMethodsDialogCaption=Define New Root Method
107
ManualMethodSelect_OKButtonText=OK
108
ManualMethodSelect_OKButtonText=OK
108
ManualMethodSelect_ClassNameLabelText=&Class Name\:
109
ManualMethodSelect_ClassNameLabelText=&Class Name\:
(-)f9a4babcf659 (+75 lines)
Added Link Here
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 *
4
 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5
 *
6
 * The contents of this file are subject to the terms of either the GNU
7
 * General Public License Version 2 only ("GPL") or the Common
8
 * Development and Distribution License("CDDL") (collectively, the
9
 * "License"). You may not use this file except in compliance with the
10
 * License. You can obtain a copy of the License at
11
 * http://www.netbeans.org/cddl-gplv2.html
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
 * specific language governing permissions and limitations under the
14
 * License.  When distributing the software, include this License Header
15
 * Notice in each file and include the License file at
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
17
 * particular file as subject to the "Classpath" exception as provided
18
 * by Sun in the GPL Version 2 section of the License file that
19
 * accompanied this code. If applicable, add the following below the
20
 * License Header, with the fields enclosed by brackets [] replaced by
21
 * your own identifying information:
22
 * "Portions Copyrighted [year] [name of copyright owner]"
23
 *
24
 * If you wish your version of this file to be governed by only the CDDL
25
 * or only the GPL Version 2, indicate your decision by adding
26
 * "[Contributor] elects to include this software in this distribution
27
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
28
 * single choice of license, a recipient has the option to distribute
29
 * your version of this file under either the CDDL, the GPL Version 2 or
30
 * to extend the choice of license to its licensees as provided above.
31
 * However, if you add GPL Version 2 code and therefore, elected the GPL
32
 * Version 2 license, then the option applies only if the new code is
33
 * made subject to such option by the copyright holder.
34
 *
35
 * Contributor(s):
36
 *
37
 * Portions Copyrighted 2009 Sun Microsystems, Inc.
38
 */
39
package org.netbeans.modules.profiler.ui;
40
41
import java.io.IOException;
42
import org.netbeans.modules.profiler.LoadedSnapshot;
43
import org.netbeans.modules.profiler.ResultsManager;
44
import org.openide.cookies.OpenCookie;
45
import org.openide.filesystems.FileObject;
46
import org.openide.loaders.DataNode;
47
import org.openide.loaders.DataObjectExistsException;
48
import org.openide.loaders.MultiDataObject;
49
import org.openide.loaders.MultiFileLoader;
50
import org.openide.nodes.Node;
51
import org.openide.nodes.Children;
52
import org.openide.util.Lookup;
53
54
public class NpsDataObject extends MultiDataObject implements OpenCookie {
55
56
    public NpsDataObject(FileObject pf, MultiFileLoader loader) throws DataObjectExistsException, IOException {
57
        super(pf, loader);
58
59
    }
60
61
    @Override
62
    protected Node createNodeDelegate() {
63
        return new DataNode(this, Children.LEAF, getLookup());
64
    }
65
66
    @Override
67
    public Lookup getLookup() {
68
        return getCookieSet().getLookup();
69
    }
70
71
    public void open() {
72
        LoadedSnapshot imported = ResultsManager.getDefault().loadSnapshot(getPrimaryFile());
73
        ResultsManager.getDefault().openSnapshot(imported);
74
    }
75
}

Return to bug 88870