Skip to content
Snippets Groups Projects
Commit 986cb32c authored by Florian Hölzl's avatar Florian Hölzl
Browse files

Moved and renamed GEF editor base implementations.

refs 339
parent 9cf57697
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,6 @@ Export-Package: org.fortiss.tooling.base.ui,
org.fortiss.tooling.base.ui.contentprovider,
org.fortiss.tooling.base.ui.dnd,
org.fortiss.tooling.base.ui.editor,
org.fortiss.tooling.base.ui.editor.gef,
org.fortiss.tooling.base.ui.editpart,
org.fortiss.tooling.base.ui.editpart.anchor,
org.fortiss.tooling.base.ui.editpart.figure,
......
......@@ -15,7 +15,7 @@ $Id$
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.base.ui.editor.gef;
package org.fortiss.tooling.base.ui.editor;
import java.util.ArrayList;
import java.util.Arrays;
......@@ -88,7 +88,7 @@ import org.fortiss.tooling.kernel.ui.util.EObjectSelectionUtils;
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 63FF468A2D042586A22495828A0798EF
*/
public class GraphicalViewerEditorBase<T extends EObject> extends EditorBase<T>
public class DiagramEditorBase<T extends EObject> extends GEFEditorBase<T>
implements IPostSelectionProvider, ContextMenuContextProvider {
/** Stores the viewer. */
......@@ -212,7 +212,7 @@ public class GraphicalViewerEditorBase<T extends EObject> extends EditorBase<T>
/**
* Returns the root object used as content root. Sub-classes may override to
* provide a different content root object. The default implementation uses
* {@link EditorBase#getEditedObject()}
* {@link GEFEditorBase#getEditedObject()}
*/
protected Object getViewerContentObject() {
return getEditedObject();
......
......@@ -15,7 +15,7 @@ $Id$
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.base.ui.editor.gef;
package org.fortiss.tooling.base.ui.editor;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notification;
......@@ -35,16 +35,13 @@ import org.fortiss.tooling.kernel.service.IPersistencyService;
*
* It provides {@link EditDomain} and thus a {@link CommandStack}.
*
* TODO: A better name: "DiagramEditorBase" to be homogeneous with
* "TextEditorBase"
*
* @author hummel
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash: ACB0A017DFD8FCAEFD9CDF1BE89476EF
*/
public abstract class EditorBase<T extends EObject> extends
public abstract class GEFEditorBase<T extends EObject> extends
org.fortiss.tooling.kernel.ui.extension.base.EditorBase<T> {
/** The edit domain (used e.g. for managing the command stack). */
......@@ -59,7 +56,7 @@ public abstract class EditorBase<T extends EObject> extends
if (getEditedObject().eContainer() == null
&& IPersistencyService.INSTANCE
.getTopLevelElementFor(getEditedObject()) != null) {
getSite().getPage().closeEditor(EditorBase.this, false);
getSite().getPage().closeEditor(GEFEditorBase.this, false);
}
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment