summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvrubezhny2013-10-23 09:30:35 (EDT)
committervrubezhny2013-12-19 11:50:53 (EST)
commit90ea7fb7d70af115cbf623a6fe8c3ef5523c14ff (patch)
treee95a99fef257dbbad3027af0ed0b835c322079ab
parent6eadd34ec03c653dfa2190181a8d85379c0020dd (diff)
downloadwebtools.jsdt.core-90ea7fb7d70af115cbf623a6fe8c3ef5523c14ff.zip
webtools.jsdt.core-90ea7fb7d70af115cbf623a6fe8c3ef5523c14ff.tar.gz
webtools.jsdt.core-90ea7fb7d70af115cbf623a6fe8c3ef5523c14ff.tar.bz2
Bug 266542 - [refactoring] function renaming operation does not work properlyv201312191726
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;