use of com.cubrid.common.ui.er.editor.ERSchemaEditor in project cubrid-manager by CUBRID.
the class SchemaDiagramPart method getEditor.
public ERSchemaEditor getEditor() {
EditPart parentP = getParent();
if (parentP instanceof ScalableFreeformRootEditPart) {
ScalableFreeformRootEditPart parentEditor = (ScalableFreeformRootEditPart) parentP;
EditPartViewer viewer = parentEditor.getViewer();
if (viewer instanceof ValidationGraphicalViewer) {
ValidationGraphicalViewer gViewer = (ValidationGraphicalViewer) viewer;
EditDomain domain = gViewer.getEditDomain();
if (domain instanceof ERSchemaEditDomain) {
ERSchemaEditDomain erEditorDomain = (ERSchemaEditDomain) domain;
return (ERSchemaEditor) erEditorDomain.getEditorPart();
}
}
}
return null;
}
Aggregations