mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-09 01:05:38 +02:00
Cosmetics.
This commit is contained in:
parent
dc1f19458f
commit
43dbe6cc86
2 changed files with 2 additions and 3 deletions
|
@ -130,14 +130,14 @@ public class PDOMSearchLabelProvider extends LabelProvider implements IStyledLab
|
||||||
|
|
||||||
if (element instanceof IIndexFileLocation) {
|
if (element instanceof IIndexFileLocation) {
|
||||||
IPath path= IndexLocationFactory.getPath((IIndexFileLocation)element);
|
IPath path= IndexLocationFactory.getPath((IIndexFileLocation)element);
|
||||||
if(path!=null) {
|
if (path != null) {
|
||||||
// these are categorized into directories already
|
// these are categorized into directories already
|
||||||
return path.lastSegment();
|
return path.lastSegment();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (element instanceof URI) {
|
if (element instanceof URI) {
|
||||||
return ((URI)element).toString();
|
return ((URI) element).toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (element instanceof IStatus) {
|
if (element instanceof IStatus) {
|
||||||
|
|
|
@ -133,5 +133,4 @@ public class PDOMSearchListContentProvider implements
|
||||||
public void clear() {
|
public void clear() {
|
||||||
viewer.refresh();
|
viewer.refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue