Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Lidestrom2019-11-03 10:35:54 +0000
committerJens Lidestrom2019-11-03 10:51:03 +0000
commit3e8efe6e01fa14527641665634133dc77f894442 (patch)
treeffa98ddae91ddca8f431af87cecccdc83db5473f /bundles
parent5fd5cd88779163ce7234e1ea1d82e0e759cc4fe2 (diff)
downloadeclipse.platform.ui.tools-3e8efe6e01fa14527641665634133dc77f894442.tar.gz
eclipse.platform.ui.tools-3e8efe6e01fa14527641665634133dc77f894442.tar.xz
eclipse.platform.ui.tools-3e8efe6e01fa14527641665634133dc77f894442.zip
Cleanup in ModelEditor
Remove warnings etc. Change-Id: Ib8a627b0659006a82a80581dfd5e8ae83836fb98 Signed-off-by: Jens Lidestrom <jens@lidestrom.se>
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/ModelEditor.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/ModelEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/ModelEditor.java
index 2a7a2d73..65dd624e 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/ModelEditor.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/ModelEditor.java
@@ -1970,7 +1970,7 @@ public class ModelEditor implements IGotoObject {
* @param destFeature the target feature in the model where data must be dropped
* @param parent the destination parent
* @param index the index in the parent list
- * @see bug #429684
+ * @see bug 429684
* @return the compound command
*/
private Command createRemoveAddCommand(Object data, EStructuralFeature destFeature, EObject parent, int index) {
@@ -2119,7 +2119,8 @@ public class ModelEditor implements IGotoObject {
// This will ensure the provider has created the tree node (so we can reveal
// it).
- private Object getFirstMatchingItem(EObject target, ObservableListTreeContentProvider<?> provider, Object[] items) {
+ private static Object getFirstMatchingItem(EObject target, ObservableListTreeContentProvider<?> provider,
+ Object[] items) {
for (int i = 0; i < items.length; i++) {
if (items[i] == target) {
return items[i];

Back to the top