public abstract class DockablePopupManager<T extends javax.swing.JComponent & Disposable>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Project |
myProject |
protected ToolWindow |
myToolWindow |
Constructor and Description |
---|
DockablePopupManager(Project project) |
Modifier and Type | Method and Description |
---|---|
protected AnAction[] |
createActions() |
protected abstract T |
createComponent() |
protected AnAction |
createRestorePopupAction() |
void |
createToolWindow(PsiElement element,
PsiElement originalElement) |
protected abstract void |
doUpdateComponent(Editor editor,
PsiFile psiFile) |
protected void |
doUpdateComponent(Editor editor,
PsiFile psiFile,
boolean requestFocus) |
protected abstract void |
doUpdateComponent(PsiElement element) |
protected abstract void |
doUpdateComponent(PsiElement element,
PsiElement originalElement,
T component) |
protected boolean |
getAutoUpdateDefault() |
protected abstract java.lang.String |
getAutoUpdateDescription() |
protected abstract java.lang.String |
getAutoUpdateEnabledProperty() |
protected abstract java.lang.String |
getAutoUpdateTitle() |
protected abstract java.lang.String |
getRestorePopupDescription() |
protected abstract java.lang.String |
getShowInToolWindowProperty() |
protected abstract java.lang.String |
getTitle(PsiElement element) |
protected abstract java.lang.String |
getToolwindowId() |
boolean |
hasActiveDockedDocWindow() |
protected void |
installComponentActions(ToolWindow toolWindow,
T component) |
Content |
recreateToolWindow(PsiElement element,
PsiElement originalElement) |
void |
resetAutoUpdateState() |
void |
restorePopupBehavior() |
protected void |
setToolwindowDefaultState() |
void |
updateComponent() |
void |
updateComponent(boolean requestFocus) |
protected ToolWindow myToolWindow
protected final Project myProject
public DockablePopupManager(Project project)
protected abstract java.lang.String getShowInToolWindowProperty()
protected abstract java.lang.String getAutoUpdateEnabledProperty()
protected boolean getAutoUpdateDefault()
protected abstract java.lang.String getAutoUpdateTitle()
protected abstract java.lang.String getRestorePopupDescription()
protected abstract java.lang.String getAutoUpdateDescription()
protected abstract T createComponent()
protected abstract void doUpdateComponent(PsiElement element, PsiElement originalElement, T component)
protected void doUpdateComponent(Editor editor, PsiFile psiFile, boolean requestFocus)
protected abstract void doUpdateComponent(PsiElement element)
protected abstract java.lang.String getTitle(PsiElement element)
protected abstract java.lang.String getToolwindowId()
public Content recreateToolWindow(PsiElement element, PsiElement originalElement)
public void createToolWindow(PsiElement element, PsiElement originalElement)
protected void installComponentActions(ToolWindow toolWindow, T component)
protected void setToolwindowDefaultState()
protected AnAction[] createActions()
protected AnAction createRestorePopupAction()
public void resetAutoUpdateState()
public void updateComponent()
public void updateComponent(boolean requestFocus)
public void restorePopupBehavior()
public boolean hasActiveDockedDocWindow()