diff options
author | vrubezhny | 2013-11-13 14:06:42 +0000 |
---|---|---|
committer | vrubezhny | 2013-12-19 21:09:48 +0000 |
commit | 8569735fe21fd8df2b1ef6f7e70455c7511222ab (patch) | |
tree | b1759f5d7aae521b2c4c4a65198546975744f28d | |
parent | d35ac64da4550ccb87943f318bebdf5f9f7ac3ee (diff) | |
download | webtools.maps-8569735fe21fd8df2b1ef6f7e70455c7511222ab.tar.gz webtools.maps-8569735fe21fd8df2b1ef6f7e70455c7511222ab.tar.xz webtools.maps-8569735fe21fd8df2b1ef6f7e70455c7511222ab.zip |
Bug 419970 - [refactoring] Change Function Signature doesn't work for modified files
Search in working copies issue is fixed.
Signed-off-by: vrubezhny <vrubezhny@exadel.com>
-rw-r--r-- | bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/search/IndexSelector.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/search/IndexSelector.java b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/search/IndexSelector.java index d7b673b52..ce754a448 100644 --- a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/search/IndexSelector.java +++ b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/core/search/IndexSelector.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2011 IBM Corporation and others. + * Copyright (c) 2000, 2013 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -214,7 +214,7 @@ public IPath[] getIndexLocations() { * Returns null if the path doesn't correspond to a project. */ private static IJavaScriptProject getJavaProject(IPath path, IJavaScriptModel model) { - IJavaScriptProject project = model.getJavaScriptProject(path.lastSegment()); + IJavaScriptProject project = model.getJavaScriptProject(path.segment(0)); // First path segment could be a project name if (project.exists()) { return project; } |