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

(-)a/profiler/src/org/netbeans/modules/profiler/actions/CompareSnapshotsAction.java (-1 / +11 lines)
Lines 75-80 Link Here
75
import org.openide.awt.ActionID;
75
import org.openide.awt.ActionID;
76
import org.openide.awt.ActionReference;
76
import org.openide.awt.ActionReference;
77
import org.openide.awt.ActionRegistration;
77
import org.openide.awt.ActionRegistration;
78
import org.openide.util.HelpCtx;
78
import org.openide.util.Lookup;
79
import org.openide.util.Lookup;
79
import org.openide.windows.WindowManager;
80
import org.openide.windows.WindowManager;
80
81
Lines 114-120 Link Here
114
public class CompareSnapshotsAction extends AbstractAction {
115
public class CompareSnapshotsAction extends AbstractAction {
115
    //~ Inner Classes ------------------------------------------------------------------------------------------------------------
116
    //~ Inner Classes ------------------------------------------------------------------------------------------------------------
116
117
117
    private static class SelectExternalSnapshotsPanel extends JPanel {
118
    private static class SelectExternalSnapshotsPanel extends JPanel implements HelpCtx.Provider {
119
        //~ Static fields/initializers -------------------------------------------------------------------------------------------
120
        private static final String HELP_CTX_KEY = "SelectExternalSnapshotsPanel.HelpCtx";
121
        private static final HelpCtx HELP_CTX = new HelpCtx(HELP_CTX_KEY);
122
            
118
        //~ Instance fields ------------------------------------------------------------------------------------------------------
123
        //~ Instance fields ------------------------------------------------------------------------------------------------------
119
124
120
        private JButton okButton;
125
        private JButton okButton;
Lines 134-139 Link Here
134
139
135
        //~ Methods --------------------------------------------------------------------------------------------------------------
140
        //~ Methods --------------------------------------------------------------------------------------------------------------
136
141
142
        @Override
143
        public HelpCtx getHelpCtx() {
144
            return HELP_CTX;
145
        }        
146
        
137
        public JButton getOKButton() {
147
        public JButton getOKButton() {
138
            return okButton;
148
            return okButton;
139
        }
149
        }
(-)a/profiler/src/org/netbeans/modules/profiler/actions/HeapDumpAction.java (-1 / +8 lines)
Lines 115-123 Link Here
115
        final private static HeapDumpAction INSTANCE = new HeapDumpAction();
115
        final private static HeapDumpAction INSTANCE = new HeapDumpAction();
116
    }
116
    }
117
    
117
    
118
    private static class ChooseHeapdumpTargetPanel extends JPanel {
118
    private static class ChooseHeapdumpTargetPanel extends JPanel implements HelpCtx.Provider {
119
        //~ Static fields/initializers -------------------------------------------------------------------------------------------
119
        //~ Static fields/initializers -------------------------------------------------------------------------------------------
120
120
121
        private static final String HELP_CTX_KEY = "ChooseHeapdumpTargetPanel.HelpCtx";  // NOI18N
122
        private static final HelpCtx HELP_CTX = new HelpCtx(HELP_CTX_KEY);
121
        public static final int DESTINATION_DEFAULT = 0;
123
        public static final int DESTINATION_DEFAULT = 0;
122
        public static final int DESTINATION_CUSTOM = 1;
124
        public static final int DESTINATION_CUSTOM = 1;
123
125
Lines 138-143 Link Here
138
140
139
        //~ Methods --------------------------------------------------------------------------------------------------------------
141
        //~ Methods --------------------------------------------------------------------------------------------------------------
140
142
143
        @Override
144
        public HelpCtx getHelpCtx() {
145
            return HELP_CTX;
146
        }
147
        
141
        public String getCustomDirectory() {
148
        public String getCustomDirectory() {
142
            return customLocationField.getText();
149
            return customLocationField.getText();
143
        }
150
        }
(-)a/profiler/src/org/netbeans/modules/profiler/actions/JavaPlatformSelector.java (-1 / +9 lines)
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();
(-)a/profiler/src/org/netbeans/modules/profiler/ui/FindDialog.java (-1 / +10 lines)
Lines 57-62 Link Here
57
import javax.swing.event.DocumentEvent;
57
import javax.swing.event.DocumentEvent;
58
import javax.swing.event.DocumentListener;
58
import javax.swing.event.DocumentListener;
59
import org.openide.DialogDisplayer;
59
import org.openide.DialogDisplayer;
60
import org.openide.util.HelpCtx;
60
61
61
62
62
/**
63
/**
Lines 70-78 Link Here
70
    "FindDialog_FindButtonName=Find",
71
    "FindDialog_FindButtonName=Find",
71
    "FindDialog_FindWhatFieldAccessDescr=First item starting with this string will be found in results."
72
    "FindDialog_FindWhatFieldAccessDescr=First item starting with this string will be found in results."
72
})
73
})
73
public class FindDialog extends JPanel {
74
public class FindDialog extends JPanel implements HelpCtx.Provider{
74
    //~ Static fields/initializers -----------------------------------------------------------------------------------------------
75
    //~ Static fields/initializers -----------------------------------------------------------------------------------------------
75
76
77
    private static final String HELP_CTX_KEY = "ProfilerUiFindDialog.HelpCtx"; // NOI18N
78
    private static final HelpCtx HELP_CTX = new HelpCtx(HELP_CTX_KEY);
76
    private static FindDialog defaultInstance;
79
    private static FindDialog defaultInstance;
77
80
78
    //~ Instance fields ----------------------------------------------------------------------------------------------------------
81
    //~ Instance fields ----------------------------------------------------------------------------------------------------------
Lines 90-95 Link Here
90
93
91
    //~ Methods ------------------------------------------------------------------------------------------------------------------
94
    //~ Methods ------------------------------------------------------------------------------------------------------------------
92
95
96
    @Override
97
    public HelpCtx getHelpCtx()
98
    {
99
        return HELP_CTX;
100
    }
101
    
93
    public static String getFindString() {
102
    public static String getFindString() {
94
        final FindDialog findDialog = getDefault();
103
        final FindDialog findDialog = getDefault();
95
        findDialog.findWhatField.selectAll();
104
        findDialog.findWhatField.selectAll();

Return to bug 211332