summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvrubezhny2013-11-13 09:06:42 (EST)
committervrubezhny2013-12-19 16:09:48 (EST)
commit8569735fe21fd8df2b1ef6f7e70455c7511222ab (patch)
treeb1759f5d7aae521b2c4c4a65198546975744f28d
parentd35ac64da4550ccb87943f318bebdf5f9f7ac3ee (diff)
downloadwebtools.jsdt.core-8569735fe21fd8df2b1ef6f7e70455c7511222ab.zip
webtools.jsdt.core-8569735fe21fd8df2b1ef6f7e70455c7511222ab.tar.gz
webtools.jsdt.core-8569735fe21fd8df2b1ef6f7e70455c7511222ab.tar.bz2
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.java4
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 d7b673b..ce754a4 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;
}