Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Vosburgh2016-10-13 14:30:35 -0400
committerBrian Vosburgh2016-10-13 14:30:35 -0400
commitb7da5714bea5bba919a93f45d39d53eae43a829e (patch)
tree4dd422289f78e6b0b80791d9c54947225b44c1e7
parenta427ff3de02ed18519fbb0f1b1400581b2a7123e (diff)
downloadwebtools.dali-b7da5714bea5bba919a93f45d39d53eae43a829e.tar.gz
webtools.dali-b7da5714bea5bba919a93f45d39d53eae43a829e.tar.xz
webtools.dali-b7da5714bea5bba919a93f45d39d53eae43a829e.zip
Revert "[460406] add null check for unexpected Project Explorer element"
-rw-r--r--common/plugins/org.eclipse.jpt.common.ui/src/org/eclipse/jpt/common/ui/internal/jface/ItemTreeStateProviderManager.java12
1 files changed, 1 insertions, 11 deletions
diff --git a/common/plugins/org.eclipse.jpt.common.ui/src/org/eclipse/jpt/common/ui/internal/jface/ItemTreeStateProviderManager.java b/common/plugins/org.eclipse.jpt.common.ui/src/org/eclipse/jpt/common/ui/internal/jface/ItemTreeStateProviderManager.java
index a2d061c7b0..2236edc0da 100644
--- a/common/plugins/org.eclipse.jpt.common.ui/src/org/eclipse/jpt/common/ui/internal/jface/ItemTreeStateProviderManager.java
+++ b/common/plugins/org.eclipse.jpt.common.ui/src/org/eclipse/jpt/common/ui/internal/jface/ItemTreeStateProviderManager.java
@@ -18,7 +18,6 @@ import org.eclipse.jpt.common.ui.jface.ItemTreeContentProvider;
import org.eclipse.jpt.common.ui.jface.TreeStateProvider;
import org.eclipse.jpt.common.utility.exception.ExceptionHandler;
import org.eclipse.jpt.common.utility.internal.ArrayTools;
-import org.eclipse.jpt.common.utility.internal.ObjectTools;
import com.ibm.icu.text.MessageFormat;
/**
@@ -72,16 +71,7 @@ public class ItemTreeStateProviderManager
}
public Object[] getChildren(Object parentElement) {
- ItemTreeContentProvider provider = this.getItemContentProvider(parentElement);
- if (provider == null) { // 460406
- if (PLUG_IN != null) {
- String msg = MessageFormat.format("Unexpected parent: {0}", parentElement); //$NON-NLS-1$
- IllegalArgumentException ex = new IllegalArgumentException(msg);
- PLUG_IN.logError(ex);
- }
- return ObjectTools.EMPTY_OBJECT_ARRAY;
- }
- return provider.getChildren();
+ return this.getItemContentProvider(parentElement).getChildren();
}
/**

Back to the top