mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 00:36:16 +02:00
2004-06-28 Alain Magloire
Fix for PR 68820. * src/org/eclipse/cdt/internal/ui/BaseCElementContentProvider.java * src/org/eclipse/cdt/internal/ui/CElementImageProvider.java
This commit is contained in:
parent
b98a43f436
commit
eea167e5c3
3 changed files with 15 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-06-28 Alain Magloire
|
||||
|
||||
Fix for PR 68820.
|
||||
* src/org/eclipse/cdt/internal/ui/BaseCElementContentProvider.java
|
||||
* src/org/eclipse/cdt/internal/ui/CElementImageProvider.java
|
||||
|
||||
2004-06-27 Bogdan Gheorghe
|
||||
Fix for Bug 67987: [Search] C Search results do no show up as editor annotations
|
||||
|
||||
|
|
|
@ -336,8 +336,14 @@ public class BaseCElementContentProvider implements ITreeContentProvider {
|
|||
}
|
||||
|
||||
private Object[] filterNonCResources(Object[] objects, ICProject cproject) throws CModelException {
|
||||
ICElement[] binaries = getBinaries(cproject);
|
||||
ICElement[] archives = getArchives(cproject);
|
||||
ICElement[] binaries = null;
|
||||
ICElement[] archives = null;
|
||||
try {
|
||||
binaries = getBinaries(cproject);
|
||||
archives = getArchives(cproject);
|
||||
} catch (CModelException e) {
|
||||
archives = binaries = new ICElement[0];
|
||||
}
|
||||
ISourceRoot[] roots = null;
|
||||
try {
|
||||
roots = cproject.getSourceRoots();
|
||||
|
|
|
@ -103,7 +103,7 @@ public class CElementImageProvider {
|
|||
} else if (element instanceof IFile) {
|
||||
// Check for Non Translation Unit.
|
||||
IFile file = (IFile)element;
|
||||
if (CoreModel.isTranslationUnit(file)) {
|
||||
if (CoreModel.isValidTranslationUnitName(file.getProject(), file.getName())) {
|
||||
descriptor = CPluginImages.DESC_OBJS_TUNIT_RESOURCE;
|
||||
Point size= useSmallSize(flags) ? SMALL_SIZE : BIG_SIZE;
|
||||
descriptor = new CElementImageDescriptor(descriptor, 0, size);
|
||||
|
|
Loading…
Add table
Reference in a new issue