X-Git-Url: http://secure.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..313e6de 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/actions/PHPOpenDeclarationEditorAction.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/actions/PHPOpenDeclarationEditorAction.java @@ -4,12 +4,11 @@ * the Common Public License v1.0 which accompanies this distribution, and is * available at http://www.eclipse.org/legal/cpl-v10.html * - * Contributors: Klaus Hartlage - www.eclipseproject.de + * Contributors: www.phpeclipse.de ******************************************************************************/ 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) {