X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/actions/PHPOpenDeclarationEditorAction.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/actions/PHPOpenDeclarationEditorAction.java index c4e5d76..43b848a 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/actions/PHPOpenDeclarationEditorAction.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/actions/PHPOpenDeclarationEditorAction.java @@ -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) {