cdt/cdt_5_0_x/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/SourceFilesLabelProvider.java
changeset 14 c50c3d06898c
parent 0 0e6d23e2b466
equal deleted inserted replaced
8:2cfb52d98e82 14:c50c3d06898c
    68 		} else if (orgColumnIndex == 2) {
    68 		} else if (orgColumnIndex == 2) {
    69 			cell.setText(null);
    69 			cell.setText(null);
    70 			if (cell.getElement() instanceof ITranslationUnit) {
    70 			if (cell.getElement() instanceof ITranslationUnit) {
    71 				Executable executable = (Executable) viewer.getInput();
    71 				Executable executable = (Executable) viewer.getInput();
    72 				Path path = new Path(executable.getOriginalLocation((ITranslationUnit) cell.getElement()));
    72 				Path path = new Path(executable.getOriginalLocation((ITranslationUnit) cell.getElement()));
    73 				cell.setText(executable.getOriginalLocation((ITranslationUnit) cell.getElement()));
    73 				cell.setText(path.toOSString());
    74 				if (path.toFile().exists())
    74 				if (path.toFile().exists())
    75 					cell.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_BLACK));
    75 					cell.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_BLACK));
    76 				else
    76 				else
    77 					cell.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_GRAY));
    77 					cell.setForeground(Display.getDefault().getSystemColor(SWT.COLOR_GRAY));
    78 			}
    78 			}