plugins/org.symbian.tools.tmw.debug/src/org/symbian/tools/tmw/debug/internal/launch/WrtLabelProvider.java
changeset 483 109da596fa9d
parent 471 06589bf52fa7
equal deleted inserted replaced
482:2973198ae2a9 483:109da596fa9d
    26         Object element = stackFrame.getLaunch().getSourceLocator().getSourceElement(stackFrame);
    26         Object element = stackFrame.getLaunch().getSourceLocator().getSourceElement(stackFrame);
    27         if (element instanceof IFile) {
    27         if (element instanceof IFile) {
    28             IFile resource = (IFile) element;
    28             IFile resource = (IFile) element;
    29             int line = script.getStartLine() + stackFrame.getLineNumber();
    29             int line = script.getStartLine() + stackFrame.getLineNumber();
    30             if (line != -1) {
    30             if (line != -1) {
    31                 String resourcePath = resource != null ? resource.getProjectRelativePath().toString() : script
    31                 final String resourcePath = resource.getProjectRelativePath().toString();
    32                         .getName();
       
    33                 name = NLS.bind("{0} [{1}:{2}]", new Object[] { name, resourcePath, line });
    32                 name = NLS.bind("{0} [{1}:{2}]", new Object[] { name, resourcePath, line });
    34             }
    33             }
    35         } else if (element instanceof IFileStore) {
    34         } else if (element instanceof IFileStore) {
    36             return "(WRT System Library)";
    35             return "(WRT System Library)";
    37         }
    36         }