|
From: <caw...@us...> - 2007-07-20 16:30:44
|
Revision: 2813
http://svn.sourceforge.net/rubyeclipse/?rev=2813&view=rev
Author: cawilliams
Date: 2007-07-20 09:30:43 -0700 (Fri, 20 Jul 2007)
Log Message:
-----------
make sure LogicalType holding modules says its a module, and that in the type hierarchy it uses the correct icon.
Modified Paths:
--------------
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/typehierarchy/HierarchyLabelProvider.java
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/typehierarchy/HierarchyLabelProvider.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/typehierarchy/HierarchyLabelProvider.java 2007-07-20 16:23:17 UTC (rev 2812)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/typehierarchy/HierarchyLabelProvider.java 2007-07-20 16:30:43 UTC (rev 2813)
@@ -150,21 +150,12 @@
return new RubyElementImageDescriptor(RubyPluginImages.DESC_OBJS_CLASS, 0, RubyElementImageProvider.BIG_SIZE);
}
- int flags= hierarchy.getCachedFlags(type);
- if (flags == -1) {
- return new RubyElementImageDescriptor(RubyPluginImages.DESC_OBJS_CLASS, 0, RubyElementImageProvider.BIG_SIZE);
- }
-
- boolean isModule= Flags.isModule(flags);
+ boolean isModule= type.isModule();
boolean isInner= (type.getDeclaringType() != null);
ImageDescriptor desc= RubyElementImageProvider.getTypeImageDescriptor(isModule, isInner, isDifferentScope(type));
- int adornmentFlags= 0;
- if (Flags.isStatic(flags)) {
- adornmentFlags |= RubyElementImageDescriptor.STATIC;
- }
-
+ int adornmentFlags= 0;
return new RubyElementImageDescriptor(desc, adornmentFlags, RubyElementImageProvider.BIG_SIZE);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|