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.
CTL_Line_event_name=Line {0}:{1}
#Used when the source name is taken from Line
# {0} = line display name taken from Line.getDisplayName(), e.g. "test/Sample.java:15"
CTL_Line_event_name_Line=Line {0}
# {1} = the package name of the source where the breakpoint is defined, e.g. "org.openide.text"
# {2} = the name of the source object, e.g. "Line"
# {3} = the line number of the defined breakpoint, e.g. "42"
CTL_Line_event_name_Line={2}:{3}, {1}
#JavaLineBreakpointPanel
CTL_Line_number=Line Number:
*/
public String getDisplayName () {
// 1.1 changes ...
if (line != null)
if (line != null) {
org.openide.loaders.DataObject dataObject = org.openide.text.DataEditorSupport.findDataObject(line);
FileObject fileObject = dataObject.getPrimaryFile().getParent();
return new MessageFormat (
JavaDebugger.getString ("CTL_Line_event_name_Line")
).format (new Object[] {line.getDisplayName ()});
).format (new Object[] {
line.getDisplayName (),
fileObject.getPackageName('.'),
dataObject.getName(),
new Integer(line.getLineNumber() + 1),
});
}
// 1.1 changes end ...
JavaDebugger.getString ("CTL_Line_event_name")