mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 14:15:23 +02:00
2004-08-19 Alain Magloire
Show the right icons for non-C-Resources. * src/org/eclipse/cdt/internal/ui/CElementImageProvider.java
This commit is contained in:
parent
f693b0966d
commit
d56b250e27
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-08-19 Alain Magloire
|
||||
|
||||
Show the right icons for non-C-Resources.
|
||||
* src/org/eclipse/cdt/internal/ui/CElementImageProvider.java
|
||||
|
||||
2004-08-19 Chris Wiebe
|
||||
|
||||
improved file validation
|
||||
|
|
|
@ -103,7 +103,8 @@ public class CElementImageProvider {
|
|||
} else if (element instanceof IFile) {
|
||||
// Check for Non Translation Unit.
|
||||
IFile file = (IFile)element;
|
||||
if (CoreModel.isValidTranslationUnitName(file.getProject(), file.getName())) {
|
||||
if (CoreModel.isValidTranslationUnitName(file.getProject(), file.getName()) ||
|
||||
CoreModel.isValidTranslationUnitName(null, 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