Package com._1c.g5.v8.dt.erd.ui.editors
Class ErdEditor
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.ui.part.WorkbenchPart
-
- org.eclipse.ui.part.EditorPart
-
- com._1c.g5.v8.dt.diagram.framework.ui.editors.AbstractDiagramEditor
-
- com._1c.g5.v8.dt.erd.ui.editors.ErdEditor
-
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable
,org.eclipse.core.runtime.IExecutableExtension
,org.eclipse.ui.IEditorPart
,org.eclipse.ui.ISaveablePart
,org.eclipse.ui.IWorkbenchPart
,org.eclipse.ui.IWorkbenchPart2
,org.eclipse.ui.IWorkbenchPart3
,org.eclipse.ui.part.IWorkbenchPartOrientation
public class ErdEditor extends com._1c.g5.v8.dt.diagram.framework.ui.editors.AbstractDiagramEditor
Entity-Relation diagram editor. Using this editor user can inspect configuration md objects as diagram.
Editor can contain multiple tabs. Each tab contains one diagram.- See Also:
IDiagram
-
-
Constructor Summary
Constructors Constructor Description ErdEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearLocalToolbar(org.eclipse.jface.action.IToolBarManager manager)
Removes diagram actions from local toolbar.void
createPartControl(org.eclipse.swt.widgets.Composite parent)
void
dispose()
void
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
void
doSaveAs()
void
fillLocalToolBar(org.eclipse.jface.action.IToolBarManager manager)
Adds diagram actions to local toolbar.ErdActionsManager
getActionsManager()
Returns editor actions manager.ErdColorManager
getColorManager()
Returns erd color manager.ErdOperationManager
getOperationManager()
Returns editor operation manager.org.eclipse.ui.IPartListener
getPartListener()
Returns part listener.IV8ProjectManager
getProjectManager()
Returns v8 project manager.IResourceLookup
getResourceLookup()
Returns resource lookup.ErdTabsManager
getTabsManager()
Returns editor tabs manager.void
init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input)
boolean
isEmbedded()
Returnstrue
if editor is embedded.boolean
isSaveAsAllowed()
void
operationExecuted()
Fires operation executed event.void
setEmbedded(boolean isEmbedded)
Sets if this editor is embedded or not.void
setFocus()
void
setUndoContext(org.eclipse.core.commands.operations.IUndoContext undoContext)
Sets undo context.-
Methods inherited from class com._1c.g5.v8.dt.diagram.framework.ui.editors.AbstractDiagramEditor
getDiagramDocumentProvider, isDirty, setDiagramDocumentProvider
-
Methods inherited from class org.eclipse.ui.part.EditorPart
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName
-
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
-
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
-
-
-
Field Detail
-
EDITOR_ID
public static final String EDITOR_ID
Editor id.- See Also:
- Constant Field Values
-
-
Method Detail
-
doSave
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
- Specified by:
doSave
in interfaceorg.eclipse.ui.ISaveablePart
- Overrides:
doSave
in classcom._1c.g5.v8.dt.diagram.framework.ui.editors.AbstractDiagramEditor
-
doSaveAs
public void doSaveAs()
- Specified by:
doSaveAs
in interfaceorg.eclipse.ui.ISaveablePart
- Specified by:
doSaveAs
in classorg.eclipse.ui.part.EditorPart
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceorg.eclipse.ui.IWorkbenchPart
- Overrides:
dispose
in classorg.eclipse.ui.part.WorkbenchPart
-
init
public void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input) throws org.eclipse.ui.PartInitException
- Specified by:
init
in interfaceorg.eclipse.ui.IEditorPart
- Overrides:
init
in classcom._1c.g5.v8.dt.diagram.framework.ui.editors.AbstractDiagramEditor
- Throws:
org.eclipse.ui.PartInitException
-
isSaveAsAllowed
public boolean isSaveAsAllowed()
- Specified by:
isSaveAsAllowed
in interfaceorg.eclipse.ui.ISaveablePart
- Specified by:
isSaveAsAllowed
in classorg.eclipse.ui.part.EditorPart
-
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
- Specified by:
createPartControl
in interfaceorg.eclipse.ui.IWorkbenchPart
- Specified by:
createPartControl
in classorg.eclipse.ui.part.WorkbenchPart
-
setFocus
public void setFocus()
- Specified by:
setFocus
in interfaceorg.eclipse.ui.IWorkbenchPart
- Specified by:
setFocus
in classorg.eclipse.ui.part.WorkbenchPart
-
getActionsManager
public ErdActionsManager getActionsManager()
Returns editor actions manager.- Returns:
- editor actions manager. Can't return
null
.
-
getOperationManager
public ErdOperationManager getOperationManager()
Returns editor operation manager.- Returns:
- editor operation manager. Returns
null
if editor is not initialized.
-
getTabsManager
public ErdTabsManager getTabsManager()
Returns editor tabs manager.- Returns:
- editor tabs manager. Returns
null
if editor is not initialized.
-
getColorManager
public ErdColorManager getColorManager()
Returns erd color manager.- Returns:
- erd color manager. Returns
null
if editor is not initialized.
-
getProjectManager
public IV8ProjectManager getProjectManager()
Returns v8 project manager.- Returns:
- v8 project manager. Can't return
null
-
getResourceLookup
public IResourceLookup getResourceLookup()
Returns resource lookup.- Returns:
- resource lookup. Can't return
null
-
setUndoContext
public void setUndoContext(org.eclipse.core.commands.operations.IUndoContext undoContext)
Sets undo context.- Parameters:
undoContext
- - undo context to set. Can't benull
.
-
operationExecuted
public void operationExecuted()
Fires operation executed event.
-
getPartListener
public org.eclipse.ui.IPartListener getPartListener()
Returns part listener.- Returns:
- part listener. Can't return
null
.
-
fillLocalToolBar
public void fillLocalToolBar(org.eclipse.jface.action.IToolBarManager manager)
Adds diagram actions to local toolbar.- Parameters:
manager
- - toolbar manager. Can't bnull
.
-
clearLocalToolbar
public void clearLocalToolbar(org.eclipse.jface.action.IToolBarManager manager)
Removes diagram actions from local toolbar.- Parameters:
manager
- - toolbar manager. Can't bnull
.
-
setEmbedded
public void setEmbedded(boolean isEmbedded)
Sets if this editor is embedded or not.- Parameters:
isEmbedded
- -true
if editor is embedded.
-
isEmbedded
public boolean isEmbedded()
Returnstrue
if editor is embedded.- Returns:
true
if editor is embedded.
-
-