public final class DockManagerImpl extends DockManager implements PersistentStateComponent<Element>
Constructor and Description |
---|
DockManagerImpl(Project project) |
Modifier and Type | Method and Description |
---|---|
DragSession |
createDragSession(java.awt.event.MouseEvent mouseEvent,
DockableContent content) |
void |
createNewDockContainerFor(DockableContent<?> content,
RelativePoint point) |
Pair<FileEditor[],FileEditorProvider[]> |
createNewDockContainerFor(VirtualFile file,
FileEditorManagerImpl fileEditorManager) |
DockContainer |
getContainerFor(java.awt.Component c) |
java.util.Set<DockContainer> |
getContainers() |
java.lang.String |
getDimensionKeyForFocus(java.lang.String key) |
IdeFrame |
getIdeFrame(DockContainer container) |
Element |
getState() |
void |
loadState(Element state)
This method is called when new component state is loaded.
|
void |
readState() |
void |
register(DockContainer container) |
void |
register(DockContainer container,
Disposable parentDisposable) |
void |
register(java.lang.String id,
DockContainerFactory factory,
Disposable parentDisposable) |
void |
stopCurrentDragSession() |
getInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public DockManagerImpl(Project project)
public void register(DockContainer container)
register
in class DockManager
public void register(DockContainer container, Disposable parentDisposable)
register
in class DockManager
public void register(java.lang.String id, DockContainerFactory factory, Disposable parentDisposable)
register
in class DockManager
public void readState()
public java.util.Set<DockContainer> getContainers()
getContainers
in class DockManager
public IdeFrame getIdeFrame(DockContainer container)
getIdeFrame
in class DockManager
public java.lang.String getDimensionKeyForFocus(java.lang.String key)
getDimensionKeyForFocus
in class DockManager
public DockContainer getContainerFor(java.awt.Component c)
getContainerFor
in class DockManager
public DragSession createDragSession(java.awt.event.MouseEvent mouseEvent, DockableContent content)
createDragSession
in class DockManager
public void stopCurrentDragSession()
public void createNewDockContainerFor(DockableContent<?> content, RelativePoint point)
public Pair<FileEditor[],FileEditorProvider[]> createNewDockContainerFor(VirtualFile file, FileEditorManagerImpl fileEditorManager)
public Element getState()
getState
in interface PersistentStateComponent<Element>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(Element state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<Element>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)