|
From: <caw...@us...> - 2007-06-12 16:32:05
|
Revision: 2608
http://svn.sourceforge.net/rubyeclipse/?rev=2608&view=rev
Author: cawilliams
Date: 2007-06-12 09:32:02 -0700 (Tue, 12 Jun 2007)
Log Message:
-----------
don't expand methods by default. remove unused code
Modified Paths:
--------------
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/rubyeditor/RubyOutlinePage.java
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/rubyeditor/RubyOutlinePage.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/rubyeditor/RubyOutlinePage.java 2007-06-12 16:19:34 UTC (rev 2607)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/rubyeditor/RubyOutlinePage.java 2007-06-12 16:32:02 UTC (rev 2608)
@@ -384,7 +384,7 @@
Item i= (Item) node;
if (i.getData() instanceof IRubyElement) {
IRubyElement je= (IRubyElement) i.getData();
- if (je.getElementType() == IRubyElement.IMPORT_CONTAINER) {
+ if (je.getElementType() == IRubyElement.IMPORT_CONTAINER || je.getElementType() == IRubyElement.METHOD) {
if (i != fReusedExpandedItem) {
setExpanded(i, false);
return;
@@ -1192,30 +1192,6 @@
}
/**
- * Checks whether a given Ruby element is an inner type.
- *
- * @param element the ruby element
- * @return <code>true</code> iff the given element is an inner type
- */
- private boolean isInnerType(IRubyElement element) {
-
- if (element != null && element.getElementType() == IRubyElement.TYPE) {
- IType type= (IType)element;
- try {
- return type.isMember();
- } catch (RubyModelException e) {
- IRubyElement parent= type.getParent();
- if (parent != null) {
- int parentElementType= parent.getElementType();
- return (parentElementType != IRubyElement.SCRIPT);
- }
- }
- }
-
- return false;
- }
-
- /**
* Returns the <code>IShowInSource</code> for this view.
*
* @return the {@link IShowInSource}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|