summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvrubezhny2013-10-23 09:30:35 (EDT)
committervrubezhny2013-12-19 11:47:09 (EST)
commitf2b49892ac2b077616d7391731bb11c647ffe0f8 (patch)
tree84890cee5e6329bda91e42a9b34997a3f54a3fc8
parentb22bc0ce27744b331f6e4997e5763606c06de207 (diff)
downloadwebtools.jsdt.core-f2b49892ac2b077616d7391731bb11c647ffe0f8.zip
webtools.jsdt.core-f2b49892ac2b077616d7391731bb11c647ffe0f8.tar.gz
webtools.jsdt.core-f2b49892ac2b077616d7391731bb11c647ffe0f8.tar.bz2
Bug 266542 - [refactoring] function renaming operation does not work properlyv201312191849
Issue is fixed by disabeling the refactorings on elements that are not on include path. Signed-off-by: vrubezhny <vrubezhny@exadel.com>
-rw-r--r--bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/actions/ActionUtil.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/actions/ActionUtil.java b/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/actions/ActionUtil.java
index f7b6db7..47ea4ae 100644
--- a/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/actions/ActionUtil.java
+++ b/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/actions/ActionUtil.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2008 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
@@ -85,8 +85,8 @@ public class ActionUtil {
return true;
IJavaScriptProject project= element.getJavaScriptProject();
try {
- //if (!project.isOnClasspath(element))
- // return false;
+ if (!project.isOnIncludepath(element))
+ return false;
IProject resourceProject= project.getProject();
if (resourceProject == null)
return false;