Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2021-02-03 10:42:15 +0000
committerLars Vogel2021-02-04 14:58:47 +0000
commitb48b0c0996d4f64db64eac329cf911d628df01eb (patch)
tree7bf399b72820932604d01015fbc49762e68ebcb3
parent6515e3b8c1c3993ee40b6fe001e449c4e1d6cb19 (diff)
downloadeclipse.platform.ui.tools-b48b0c0996d4f64db64eac329cf911d628df01eb.tar.gz
eclipse.platform.ui.tools-b48b0c0996d4f64db64eac329cf911d628df01eb.tar.xz
eclipse.platform.ui.tools-b48b0c0996d4f64db64eac329cf911d628df01eb.zip
The same condition is in line 41. Found during testing of https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/174008 Change-Id: I040e1943a25eccb7d575f23e8682b1d77b1e66a0 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/uistructure/WidgetContentProvider.java3
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/imp/RegistryUtil.java6
2 files changed, 1 insertions, 8 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/uistructure/WidgetContentProvider.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/uistructure/WidgetContentProvider.java
index d6da2593..0fe570ad 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/uistructure/WidgetContentProvider.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/uistructure/WidgetContentProvider.java
@@ -77,9 +77,6 @@ public class WidgetContentProvider implements ITreeContentProvider {
} else if (parentElement instanceof Tree) {
// No children
- } else if (parentElement instanceof Tree) {
- // No children
-
} else if (parentElement instanceof List) {
// No children
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/imp/RegistryUtil.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/imp/RegistryUtil.java
index f51bc055..aa924ce5 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/imp/RegistryUtil.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/imp/RegistryUtil.java
@@ -411,11 +411,7 @@ public class RegistryUtil {
return new RegistryStruct(EMPTY_STRING, "org.eclipse.ui.views", "view", NAME); //$NON-NLS-1$ //$NON-NLS-2$
} else if (applicationElement == MHandler.class) {
return new RegistryStruct(EMPTY_STRING, "org.eclipse.ui.handlers", "handler", COMMAND_ID); //$NON-NLS-1$ //$NON-NLS-2$
- } else if (applicationElement == MPart.class) {
- return new RegistryStruct(EMPTY_STRING, "org.eclipse.ui.views", "view", NAME); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- else if (applicationElement == MPartDescriptor.class) {
+ } else if (applicationElement == MPartDescriptor.class) {
if (hint == HINT_EDITOR)
{
return new RegistryStruct(EMPTY_STRING, "org.eclipse.ui.editors", EDITOR, NAME); //$NON-NLS-1$

Back to the top