public final class EditorTabbedContainer extends java.lang.Object implements CloseAction.CloseTarget
Modifier and Type | Class and Description |
---|---|
class |
EditorTabbedContainer.CloseTab |
static class |
EditorTabbedContainer.DockableEditor |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HELP_ID |
KEY
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
calcFileName(Project project,
VirtualFile file)
|
static java.awt.Color |
calcTabColor(Project project,
VirtualFile file)
|
static java.lang.String |
calcTabTitle(Project project,
VirtualFile file)
|
void |
close() |
static EditorTabbedContainer.DockableEditor |
createDockableEditor(Project project,
java.awt.Image image,
VirtualFile file,
Presentation presentation,
EditorWindow window) |
void |
doHideAll(java.awt.event.MouseEvent e) |
javax.swing.JComponent |
getComponent() |
java.awt.Component |
getComponentAt(int i) |
java.lang.Object |
getSelectedComponent(boolean ignorePopup) |
int |
getSelectedIndex() |
int |
getTabCount() |
JBTabs |
getTabs() |
void |
insertTab(VirtualFile file,
javax.swing.Icon icon,
javax.swing.JComponent component,
java.lang.String tooltip,
int indexToInsert,
Disposable parentDisposable) |
ActionCallback |
removeTabAt(int componentIndex,
int indexToSelect) |
ActionCallback |
removeTabAt(int componentIndex,
int indexToSelect,
boolean transferFocus) |
void |
requestFocus(boolean forced) |
ActionCallback |
setSelectedIndex(int indexToSelect) |
ActionCallback |
setSelectedIndex(int indexToSelect,
boolean focusEditor) |
void |
setTabPlacement(int tabPlacement) |
void |
setTitleAt(int index,
java.lang.String text) |
public static final java.lang.String HELP_ID
public int getTabCount()
public ActionCallback setSelectedIndex(int indexToSelect)
public ActionCallback setSelectedIndex(int indexToSelect, boolean focusEditor)
public static EditorTabbedContainer.DockableEditor createDockableEditor(Project project, java.awt.Image image, VirtualFile file, Presentation presentation, EditorWindow window)
public javax.swing.JComponent getComponent()
public ActionCallback removeTabAt(int componentIndex, int indexToSelect, boolean transferFocus)
public ActionCallback removeTabAt(int componentIndex, int indexToSelect)
public int getSelectedIndex()
public void setTitleAt(int index, java.lang.String text)
public void setTabPlacement(int tabPlacement)
public java.lang.Object getSelectedComponent(boolean ignorePopup)
ignorePopup
- if false
and context menu is shown currently for some tab,
component for which menu is invoked will be returnedpublic void insertTab(VirtualFile file, javax.swing.Icon icon, javax.swing.JComponent component, java.lang.String tooltip, int indexToInsert, Disposable parentDisposable)
public JBTabs getTabs()
public void requestFocus(boolean forced)
@Deprecated public static java.lang.String calcTabTitle(Project project, VirtualFile file)
@Deprecated public static java.lang.String calcFileName(Project project, VirtualFile file)
@Deprecated public static java.awt.Color calcTabColor(Project project, VirtualFile file)
public java.awt.Component getComponentAt(int i)
public void close()
close
in interface CloseAction.CloseTarget
public void doHideAll(java.awt.event.MouseEvent e)