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

(-)org/netbeans/modules/debugger/support/java/Bundle.properties (-1 / +4 lines)
Lines 59-65 Link Here
59
CTL_Line_event_name=Line {0}:{1}
59
CTL_Line_event_name=Line {0}:{1}
60
#Used when the source name is taken from Line
60
#Used when the source name is taken from Line
61
# {0} = line display name taken from Line.getDisplayName(), e.g. "test/Sample.java:15"
61
# {0} = line display name taken from Line.getDisplayName(), e.g. "test/Sample.java:15"
62
CTL_Line_event_name_Line=Line {0}
62
# {1} = the package name of the source where the breakpoint is defined, e.g. "org.openide.text"
63
# {2} = the name of the source object, e.g. "Line"
64
# {3} = the line number of the defined breakpoint, e.g. "42"
65
CTL_Line_event_name_Line={2}:{3}, {1}
63
66
64
#JavaLineBreakpointPanel
67
#JavaLineBreakpointPanel
65
CTL_Line_number=Line Number:
68
CTL_Line_number=Line Number:
(-)org/netbeans/modules/debugger/support/java/JavaLineBreakpointEvent.java (-2 / +11 lines)
Lines 188-197 Link Here
188
    */
188
    */
189
    public String getDisplayName () {
189
    public String getDisplayName () {
190
        // 1.1 changes ...
190
        // 1.1 changes ...
191
        if (line != null)
191
        if (line != null) {
192
            org.openide.loaders.DataObject dataObject = org.openide.text.DataEditorSupport.findDataObject(line);
193
            FileObject fileObject = dataObject.getPrimaryFile().getParent();
194
            
192
            return new MessageFormat (
195
            return new MessageFormat (
193
                JavaDebugger.getString ("CTL_Line_event_name_Line")
196
                JavaDebugger.getString ("CTL_Line_event_name_Line")
194
            ).format (new Object[] {line.getDisplayName ()});
197
            ).format (new Object[] {
198
                line.getDisplayName (),
199
                fileObject.getPackageName('.'),
200
                dataObject.getName(),
201
                new Integer(line.getLineNumber() + 1),
202
            });
203
        }
195
        // 1.1 changes end ...
204
        // 1.1 changes end ...
196
        return new MessageFormat (
205
        return new MessageFormat (
197
            JavaDebugger.getString ("CTL_Line_event_name")
206
            JavaDebugger.getString ("CTL_Line_event_name")

Return to bug 34241