aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzhongwei2012-08-14 02:34:47 (EDT)
committerzzhongwei2012-08-14 02:34:47 (EDT)
commit4a8016fb422527a4475e3f646d6589dd30c3909d (patch)
tree3d6db99918070f583788137a5702d8edd24f76b5
parent060b5e81d8cc5aab75d744d187eedf66c91a7b3d (diff)
downloadorg.eclipse.pdt-4a8016fb422527a4475e3f646d6589dd30c3909d.zip
org.eclipse.pdt-4a8016fb422527a4475e3f646d6589dd30c3909d.tar.gz
org.eclipse.pdt-4a8016fb422527a4475e3f646d6589dd30c3909d.tar.bz2
387167: Removing project from Include path doesn't remove it from
.buildpath https://bugs.eclipse.org/bugs/show_bug.cgi?id=387167
-rw-r--r--plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/actions/RemoveFromIncludepathAction.java21
1 files changed, 9 insertions, 12 deletions
diff --git a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/actions/RemoveFromIncludepathAction.java b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/actions/RemoveFromIncludepathAction.java
index 226ae58..4916cb4 100644
--- a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/actions/RemoveFromIncludepathAction.java
+++ b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/actions/RemoveFromIncludepathAction.java
@@ -75,20 +75,17 @@ public class RemoveFromIncludepathAction extends Action implements
.removeEntryFromIncludePath(
includePath.getProject(),
(IBuildpathEntry) (includePath.getEntry()));
- else {
- IProject proj = includePath.getProject();
- IncludePathManager manager = IncludePathManager
- .getInstance();
- IncludePath[] paths = manager.getIncludePaths(proj);
- List<IncludePath> entries = new ArrayList<IncludePath>();
- for (IncludePath path : paths) {
- if (!path.equals(includePath)) {
- entries.add(path);
- }
+ IProject proj = includePath.getProject();
+ IncludePathManager manager = IncludePathManager.getInstance();
+ IncludePath[] paths = manager.getIncludePaths(proj);
+ List<IncludePath> entries = new ArrayList<IncludePath>();
+ for (IncludePath path : paths) {
+ if (!path.equals(includePath)) {
+ entries.add(path);
}
- manager.setIncludePath(proj, entries
- .toArray(new IncludePath[entries.size()]));
}
+ manager.setIncludePath(proj,
+ entries.toArray(new IncludePath[entries.size()]));
} catch (ModelException e) {
Logger.logException("Could not remove buildPathEntry", e);
}