|
From: <caw...@us...> - 2007-08-02 15:34:46
|
Revision: 2918
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2918&view=rev
Author: cawilliams
Date: 2007-08-02 08:34:45 -0700 (Thu, 02 Aug 2007)
Log Message:
-----------
fix #5423 - Outline view shows no content for external files opened via File > Open File...
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/ExternalSourceFolderRoot.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/ExternalSourceFolderRoot.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/ExternalSourceFolderRoot.java 2007-08-02 15:34:39 UTC (rev 2917)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/ExternalSourceFolderRoot.java 2007-08-02 15:34:45 UTC (rev 2918)
@@ -8,6 +8,8 @@
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
import org.rubypeople.rdt.core.IRubyElement;
import org.rubypeople.rdt.core.IRubyModelStatusConstants;
import org.rubypeople.rdt.core.ISourceFolder;
@@ -175,6 +177,11 @@
}
return null;
}
+
+ @Override
+ protected IStatus validateOnLoadpath() { // FIXME This is a HACK. Override so all external roots are said to be on loadpath. This is done so opening external file through File > Open File.. shows content in outline page.
+ return Status.OK_STATUS;
+ }
protected boolean resourceExists() {
if (this.isExternal()) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|