Bug 841370 - open declaration for projects wih external workspace
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / actions / PHPOpenDeclarationEditorAction.java
index c4e5d76..43b848a 100644 (file)
@@ -8,8 +8,7 @@
  ******************************************************************************/
 package net.sourceforge.phpeclipse.actions;
 
-import java.util.ArrayList;
-import java.util.Arrays;
+import java.io.File;
 import java.util.Collections;
 import java.util.List;
 import java.util.Set;
@@ -145,8 +144,10 @@ public class PHPOpenDeclarationEditorAction extends ActionDelegate implements
         List locationsList = indexManager.getLocations(word);
         if (locationsList != null && locationsList.size() > 0) {
 
-          String workspaceLocation = PHPeclipsePlugin.getWorkspace().getRoot()
-              .getLocation().toString();
+//          String workspaceLocation = PHPeclipsePlugin.getWorkspace().getRoot()
+//              .getLocation().toString();
+          
+          String workspaceLocation = fProject.getLocation().toString()+File.separatorChar;
           // TODO show all entries of the list in a dialog box
           // at the moment always the first entry will be opened
           if (locationsList.size() > 1) {