summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvrubezhny2013-11-13 09:06:42 (EST)
committervrubezhny2013-12-19 16:07:05 (EST)
commite1fb661305d6d80a17decc44e02642dcdd54128b (patch)
tree515c237862d062d02afd1f9138be88544d2ad626
parent9f0cf4a3bf11c3e3304cb11b0dc069bcb202d0d7 (diff)
downloadwebtools.jsdt.core-e1fb661305d6d80a17decc44e02642dcdd54128b.zip
webtools.jsdt.core-e1fb661305d6d80a17decc44e02642dcdd54128b.tar.gz
webtools.jsdt.core-e1fb661305d6d80a17decc44e02642dcdd54128b.tar.bz2
Bug 419970 - [refactoring] Change Function Signature doesn't work for modified filesv201312192232
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;
}