public final class RunnerContentUi extends java.lang.Object implements ContentUI, Disposable, CellTransform.Facade, ViewContextEx, java.beans.PropertyChangeListener, QuickActionProvider, DockContainer.Dialog, Activatable
Modifier and Type | Class and Description |
---|---|
static class |
RunnerContentUi.ShowDebugContentAction |
Disposable.Parent
DockContainer.ContentResponse, DockContainer.Dialog, DockContainer.Listener, DockContainer.Persistent
Activatable.Adapter
Modifier and Type | Field and Description |
---|---|
static DataKey<RunnerContentUi> |
KEY |
static Key<java.lang.Boolean> |
LIGHTWEIGHT_CONTENT_MARKER |
CELL_POPUP_PLACE, CELL_TOOLBAR_PLACE, CONTENT_KEY, CONTEXT_KEY, TAB_POPUP_PLACE, TAB_TOOLBAR_PLACE
Constructor and Description |
---|
RunnerContentUi(Project project,
RunnerLayoutUi ui,
ActionManager actionManager,
IdeFocusManager focusManager,
RunnerLayout settings,
java.lang.String sessionName,
java.lang.String runnerId) |
RunnerContentUi(RunnerContentUi ui,
RunnerContentUi original,
int window) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isCycleRoot
getAcceptAreaFallback, startDropOver
public static final DataKey<RunnerContentUi> KEY
public static final Key<java.lang.Boolean> LIGHTWEIGHT_CONTENT_MARKER
public RunnerContentUi(Project project, RunnerLayoutUi ui, ActionManager actionManager, IdeFocusManager focusManager, RunnerLayout settings, java.lang.String sessionName, java.lang.String runnerId)
public RunnerContentUi(RunnerContentUi ui, RunnerContentUi original, int window)
public void setLeftToolbar(ActionGroup group, java.lang.String place)
public ActionGroup getCellPopupGroup(java.lang.String place)
getCellPopupGroup
in interface ViewContextEx
public boolean isOriginal()
isOriginal
in interface ViewContextEx
public int getWindow()
getWindow
in interface ViewContextEx
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
public ActionCallback detachTo(int window, GridCell cell)
detachTo
in interface ViewContextEx
public RelativeRectangle getAcceptArea()
getAcceptArea
in interface DockContainer
public DockContainer.ContentResponse getContentResponse(DockableContent content, RelativePoint point)
getContentResponse
in interface DockContainer
public javax.swing.JComponent getComponent()
getComponent
in interface ContentUI
getComponent
in interface QuickActionProvider
public javax.swing.JComponent getContainerComponent()
getContainerComponent
in interface DockContainer
public void add(DockableContent dockable, RelativePoint dropTarget)
add
in interface DockContainer
public void closeAll()
DockContainer
closeAll
in interface DockContainer
public void addListener(DockContainer.Listener listener, Disposable parent)
addListener
in interface DockContainer
public boolean isEmpty()
isEmpty
in interface DockContainer
public java.awt.Image processDropOver(DockableContent dockable, RelativePoint dropTarget)
processDropOver
in interface DockContainer
public void toggleContentPopup(JBTabs tabs)
public java.util.List<Content> getPopupContents()
public void resetDropOver(DockableContent content)
resetDropOver
in interface DockContainer
public boolean isDisposeWhenEmpty()
isDisposeWhenEmpty
in interface DockContainer
public void setManager(ContentManager manager)
setManager
in interface ContentUI
public ContentManager getContentManager(Content content)
public GridCell findCellFor(Content content)
findCellFor
in interface ViewContext
public void saveUiState()
saveUiState
in interface ViewContext
public Tab getTabFor(Grid grid)
getTabFor
in interface ViewContext
public void showNotify()
showNotify
in interface Activatable
public void hideNotify()
hideNotify
in interface Activatable
public Grid findGridFor(Content content)
findGridFor
in interface ViewContext
public boolean isSingleSelection()
isSingleSelection
in interface ContentUI
public boolean isToSelectAddedContent()
isToSelectAddedContent
in interface ContentUI
public boolean canBeEmptySelection()
canBeEmptySelection
in interface ContentUI
public void beforeDispose()
beforeDispose
in interface ContentUI
public boolean canChangeSelectionTo(Content content, boolean implicit)
canChangeSelectionTo
in interface ContentUI
public java.lang.String getCloseActionName()
getCloseActionName
in interface ContentUI
public java.lang.String getCloseAllButThisActionName()
getCloseAllButThisActionName
in interface ContentUI
public java.lang.String getPreviousContentActionName()
getPreviousContentActionName
in interface ContentUI
public java.lang.String getNextContentActionName()
getNextContentActionName
in interface ContentUI
public void dispose()
Disposable
dispose
in interface Disposable
public void restoreLayout()
restoreLayout
in interface ViewContext
public boolean isStateBeingRestored()
isStateBeingRestored
in interface ViewContext
public void setStateIsBeingRestored(boolean restoredNow, java.lang.Object requestor)
setStateIsBeingRestored
in interface ViewContext
public void updateActionsImmediately()
public boolean isMinimizeActionEnabled()
isMinimizeActionEnabled
in interface ViewContext
public boolean isMoveToGridActionEnabled()
isMoveToGridActionEnabled
in interface ViewContext
public void setPolicy(java.lang.String contentId, LayoutAttractionPolicy policy)
public Content findContent(java.lang.String key)
public void restoreContent(java.lang.String key)
public boolean isToDisposeRemovedContent()
isToDisposeRemovedContent
in interface ViewContext
public void attract(Content content, boolean afterInitialized)
public static boolean ensureValid(javax.swing.JComponent c)
public void minimize(Content content, CellTransform.Restore restore)
minimize
in interface CellTransform.Facade
public void restore(Content content)
public Project getProject()
getProject
in interface ViewContext
public CellTransform.Facade getCellTransform()
getCellTransform
in interface ViewContext
public ContentManager getContentManager()
getContentManager
in interface ViewContext
public ActionManager getActionManager()
getActionManager
in interface ViewContext
public RunnerLayout getLayoutSettings()
getLayoutSettings
in interface ViewContextEx
public View getStateFor(Content content)
getStateFor
in interface ViewContext
public ActionCallback select(Content content, boolean requestFocus)
select
in interface ViewContext
public void validate(Content content, ActiveRunnable toRestore)
validate
in interface ViewContext
public IdeFocusManager getFocusManager()
getFocusManager
in interface ViewContext
public RunnerLayoutUi getRunnerLayoutUi()
getRunnerLayoutUi
in interface ViewContext
public java.lang.String getName()
getName
in interface QuickActionProvider
public java.util.List<AnAction> getActions(boolean originalProvider)
getActions
in interface QuickActionProvider