From 9cf576978576323bb97bd730b91a81560f7ac29f Mon Sep 17 00:00:00 2001
From: Daniel Ratiu <ratiu@fortiss.org>
Date: Thu, 1 Dec 2011 08:40:07 +0000
Subject: [PATCH] code cleaning refs 340

---
 .../trunk/META-INF/MANIFEST.MF                |  2 +-
 .../base/ui/editor/TextEditorBase.java        | 25 ++++++++++---------
 .../trunk/META-INF/MANIFEST.MF                |  1 -
 3 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/org.fortiss.tooling.base.ui/trunk/META-INF/MANIFEST.MF b/org.fortiss.tooling.base.ui/trunk/META-INF/MANIFEST.MF
index eb58feac2..8e4f0c6e8 100644
--- a/org.fortiss.tooling.base.ui/trunk/META-INF/MANIFEST.MF
+++ b/org.fortiss.tooling.base.ui/trunk/META-INF/MANIFEST.MF
@@ -6,7 +6,7 @@ Bundle-Version: 1.0.0.qualifier
 Bundle-Activator: org.fortiss.tooling.base.ui.ToolingBaseUIActivator
 Require-Bundle: org.fortiss.tooling.base;bundle-version="1.0.0";visibility:=reexport,
  org.fortiss.tooling.kernel.ui;bundle-version="1.0.0";visibility:=reexport,
- org.eclipse.jface.text;bundle-version="3.7.1"
+ org.eclipse.jface.text;bundle-version="3.7.0"
 Bundle-ActivationPolicy: lazy
 Bundle-RequiredExecutionEnvironment: JavaSE-1.6
 Bundle-Vendor: fortiss
diff --git a/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/editor/TextEditorBase.java b/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/editor/TextEditorBase.java
index a769b82d9..8f3df5280 100644
--- a/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/editor/TextEditorBase.java
+++ b/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/editor/TextEditorBase.java
@@ -26,7 +26,6 @@ import org.eclipse.ui.PartInitException;
 import org.eclipse.ui.editors.text.TextEditor;
 import org.fortiss.tooling.kernel.service.ICommandStackService;
 import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
-import org.fortiss.tooling.kernel.ui.internal.editor.ModelElementEditorInput;
 
 /**
  * 
@@ -65,18 +64,20 @@ public class TextEditorBase<T extends EObject> extends TextEditor {
 	@Override
 	public void init(IEditorSite site, IEditorInput input)
 			throws PartInitException {
-		if (!(input instanceof ModelElementEditorInput)) {
-			throw new PartInitException("Expected input of type "
-					+ ModelElementEditorInput.class);
-		}
-		ModelElementEditorInput meInput = (ModelElementEditorInput) input;
-
-		editedObject = (T) meInput.getModelElement();
-		if (editedObject == null) {
-			throw new PartInitException("Missing model element!");
-		}
 
-		handler = (IModelElementHandler<T>) meInput.getModelElementHandler();
+		// if (!(input instanceof ModelElementEditorInput)) {
+		// throw new PartInitException("Expected input of type "
+		// + ModelElementEditorInput.class);
+		// }
+		// ModelElementEditorInput meInput = (ModelElementEditorInput) input;
+		//
+		// editedObject = (T) meInput.getModelElement();
+
+		// if (editedObject == null) {
+		// throw new PartInitException("Missing model element!");
+		// }
+		//
+		// handler = (IModelElementHandler<T>) meInput.getModelElementHandler();
 		if (handler == null) {
 			throw new PartInitException("Missing model element handler!");
 		}
diff --git a/org.fortiss.tooling.kernel.ui/trunk/META-INF/MANIFEST.MF b/org.fortiss.tooling.kernel.ui/trunk/META-INF/MANIFEST.MF
index 173442615..a047282c9 100644
--- a/org.fortiss.tooling.kernel.ui/trunk/META-INF/MANIFEST.MF
+++ b/org.fortiss.tooling.kernel.ui/trunk/META-INF/MANIFEST.MF
@@ -22,7 +22,6 @@ Export-Package: org.fortiss.tooling.kernel.ui,
  org.fortiss.tooling.kernel.ui.extension.base,
  org.fortiss.tooling.kernel.ui.extension.data,
  org.fortiss.tooling.kernel.ui.extension.editingsupport,
- org.fortiss.tooling.kernel.ui.internal.editor,
  org.fortiss.tooling.kernel.ui.listener,
  org.fortiss.tooling.kernel.ui.service,
  org.fortiss.tooling.kernel.ui.util
-- 
GitLab