public class EditorComposite extends java.lang.Object implements Disposable
Disposable.Parent
Modifier and Type | Method and Description |
---|---|
void |
addBottomComponent(FileEditor editor,
javax.swing.JComponent component) |
void |
addEditor(FileEditor editor,
FileEditorProvider provider) |
void |
addTopComponent(FileEditor editor,
javax.swing.JComponent component) |
com.intellij.openapi.fileEditor.impl.HistoryEntry |
currentStateAsHistoryEntry() |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
javax.swing.JComponent |
getComponent() |
protected java.lang.String |
getDisplayName(FileEditor editor) |
FileEditor [] |
getEditors() |
VirtualFile |
getFile() |
FileEditorManager |
getFileEditorManager() |
long |
getInitialFileTimeStamp() |
javax.swing.JComponent |
getPreferredFocusedComponent() |
FileEditorProvider [] |
getProviders() |
Pair<FileEditor,FileEditorProvider> |
getSelectedEditorWithProvider()
Deprecated.
|
FileEditorWithProvider |
getSelectedWithProvider() |
JBTabs |
getTabs() |
boolean |
isModified() |
boolean |
isPinned() |
void |
removeBottomComponent(FileEditor editor,
javax.swing.JComponent component) |
void |
removeTopComponent(FileEditor editor,
javax.swing.JComponent component) |
void |
setDisplayName(FileEditor editor,
java.lang.String name) |
public FileEditorProvider [] getProviders()
public boolean isPinned()
public javax.swing.JComponent getPreferredFocusedComponent()
public VirtualFile getFile()
public FileEditorManager getFileEditorManager()
public long getInitialFileTimeStamp()
public FileEditor [] getEditors()
public JBTabs getTabs()
public void addTopComponent(FileEditor editor, javax.swing.JComponent component)
public void removeTopComponent(FileEditor editor, javax.swing.JComponent component)
public void addBottomComponent(FileEditor editor, javax.swing.JComponent component)
public void removeBottomComponent(FileEditor editor, javax.swing.JComponent component)
public void setDisplayName(FileEditor editor, java.lang.String name)
protected java.lang.String getDisplayName(FileEditor editor)
public FileEditorWithProvider getSelectedWithProvider()
@Deprecated public Pair<FileEditor,FileEditorProvider> getSelectedEditorWithProvider()
getSelectedWithProvider()
public javax.swing.JComponent getComponent()
public boolean isModified()
true
if the composite contains at least one
modified myEditorpublic void dispose()
Disposable
dispose
in interface Disposable
public com.intellij.openapi.fileEditor.impl.HistoryEntry currentStateAsHistoryEntry()
public void addEditor(FileEditor editor, FileEditorProvider provider)