Lines 13-23
package org.eclipse.cdt.debug.internal.core.breakpoints;
Link Here
|
13 |
import java.util.Map; |
13 |
import java.util.Map; |
14 |
|
14 |
|
15 |
import org.eclipse.cdt.debug.core.CDebugUtils; |
15 |
import org.eclipse.cdt.debug.core.CDebugUtils; |
|
|
16 |
import org.eclipse.cdt.debug.core.DebugCoreMessages; |
16 |
import org.eclipse.cdt.debug.core.model.ICBreakpoint; |
17 |
import org.eclipse.cdt.debug.core.model.ICBreakpoint; |
17 |
import org.eclipse.cdt.debug.core.model.ICLineBreakpoint2; |
18 |
import org.eclipse.cdt.debug.core.model.ICLineBreakpoint2; |
18 |
import org.eclipse.core.resources.IMarker; |
19 |
import org.eclipse.core.resources.IMarker; |
19 |
import org.eclipse.core.resources.IResource; |
20 |
import org.eclipse.core.resources.IResource; |
20 |
import org.eclipse.core.runtime.CoreException; |
21 |
import org.eclipse.core.runtime.CoreException; |
|
|
22 |
import org.eclipse.core.runtime.IPath; |
23 |
import org.eclipse.core.runtime.Path; |
21 |
|
24 |
|
22 |
import com.ibm.icu.text.MessageFormat; |
25 |
import com.ibm.icu.text.MessageFormat; |
23 |
|
26 |
|
Lines 67-73
public class CLineBreakpoint extends AbstractLineBreakpoint {
Link Here
|
67 |
(bp_file == null && bp_reqest_file != null) || |
70 |
(bp_file == null && bp_reqest_file != null) || |
68 |
(bp_file != null && !bp_file.equals(bp_reqest_file)) ) |
71 |
(bp_file != null && !bp_file.equals(bp_reqest_file)) ) |
69 |
{ |
72 |
{ |
70 |
return MessageFormat.format( BreakpointMessages.getString( "CLineBreakpoint.1" ), (Object[])new String[] { CDebugUtils.getBreakpointText( this, false ) } ); //$NON-NLS-1$ |
73 |
StringBuffer label = new StringBuffer(); |
|
|
74 |
if (bp_file != null && !bp_file.equals(bp_reqest_file)) { |
75 |
IPath path = new Path(bp_reqest_file); |
76 |
if (path.isValidPath(bp_reqest_file)) { |
77 |
label.append(path.lastSegment()); |
78 |
} |
79 |
label.append(' '); |
80 |
} |
81 |
label.append(MessageFormat.format(DebugCoreMessages.getString("CDebugUtils.0"), (Object[])new String[]{ Integer.toString(bp_request_line) })); //$NON-NLS-1$ |
82 |
return MessageFormat.format( BreakpointMessages.getString( "CLineBreakpoint.1" ), (Object[])new String[] { label.toString(), CDebugUtils.getBreakpointText( this, false ) } ); //$NON-NLS-1$ |
71 |
} |
83 |
} |
72 |
else { |
84 |
else { |
73 |
return MessageFormat.format( BreakpointMessages.getString( "CLineBreakpoint.0" ), (Object[])new String[] { CDebugUtils.getBreakpointText( this, false ) } ); //$NON-NLS-1$ |
85 |
return MessageFormat.format( BreakpointMessages.getString( "CLineBreakpoint.0" ), (Object[])new String[] { CDebugUtils.getBreakpointText( this, false ) } ); //$NON-NLS-1$ |
74 |
- |
|
|