Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorymazor2007-08-06 09:46:24 -0400
committerymazor2007-08-06 09:46:24 -0400
commitf81504f12429360f50ca01286078d8c762983074 (patch)
tree2bfb0e541249d1075cb055c7c581f4be84d7a1ac
parentaeb10d3f0ff13376b34820fd804f0bb0832540a0 (diff)
downloadorg.eclipse.pdt-R1_0_0_20070705.tar.gz
org.eclipse.pdt-R1_0_0_20070705.tar.xz
org.eclipse.pdt-R1_0_0_20070705.zip
fixed endless loopv20070806R1_0_0_20070705
-rw-r--r--plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/treecontent/IncludesNode.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/treecontent/IncludesNode.java b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/treecontent/IncludesNode.java
index 8dfc9820f..aa5ebbcef 100644
--- a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/treecontent/IncludesNode.java
+++ b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/treecontent/IncludesNode.java
@@ -147,10 +147,12 @@ class IncludesNode extends PHPTreeNode implements IPhpProjectOptionChangeListene
private void refreshMissingFileNode(final IPath fileTreeLocation, final boolean deleted) {
IPath elementToRefresh = fileTreeLocation;
while (!IncludePathTreeContent.includePathTree.includes(elementToRefresh) && elementToRefresh.segmentCount() > 1) {
- if (deleted)
- if (IncludePathTreeContent.includePathTree.includes(elementToRefresh) && IncludePathTreeContent.includePathTree.getChildCount(elementToRefresh) < 1)
+ if (deleted) {
+ if (IncludePathTreeContent.includePathTree.includes(elementToRefresh) && IncludePathTreeContent.includePathTree.getChildCount(elementToRefresh) < 1) {
IncludePathTreeContent.includePathTree.deleteElement(elementToRefresh);
- elementToRefresh = fileTreeLocation.removeLastSegments(1);
+ }
+ }
+ elementToRefresh = elementToRefresh.removeLastSegments(1);
}
refresh(IncludePathTreeContent.includePathTree.getElementData(elementToRefresh));
}

Back to the top