| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface IdeEditorManagerProvides methods for managing opened editors.
There can be any number of opened editors. Method openEditor() is used to
open a new empty editor. Text can be loaded into the editor using
IdeEditor.setFile(String) method.
There are two special kinds of editors:
Current IdeEditorManager can be obtained via
IdeEditorManagerAccess.getEditorManager method.
| Method Summary | |
void | closeEditor(IdeEditor editor)Closes the specified editor and removes its tab. |
IdeEditorEnumeration | editors()Returns an enumeration of all opened editors. |
IdeEditor | findEditor(String fileName)Finds the editor by the specified name of an opened file. |
IdeEditor | getActiveEditor()Returns the active editor. |
IdeEditor | getDefaultEditor()Returns the default editor. |
boolean | isPaneVisible()Checks whether the Together's editor pane is visible on the screen. |
IdeEditor | openEditor()Opens a new editor. |
void | requestFocus()Requests focus for text editor. |
void | setActiveEditor(IdeEditor editor)Sets the specified IdeEditor to be the active editor. |
void | setDefaultEditor(IdeEditor editor)Sets the specified IdeEditor to be the default editor. |
void | setPaneVisible(boolean value)Sets the visibility of the Together's editor pane. |
| Method Detail |
public void closeEditor(IdeEditor editor)
IdeEditor to be closed.public IdeEditorEnumeration editors()
IdeEditorEnumeration of all opened editors.public IdeEditor findEditor(String fileName)
null.String name of the opened fileIdeEditor that contains specified file.public IdeEditor getActiveEditor()
IdeEditor.public IdeEditor getDefaultEditor()
IdeEditorpublic boolean isPaneVisible()
true if the editor pane if visible, false otherwisepublic IdeEditor openEditor()
IdeEditor.public void requestFocus()
public void setActiveEditor(IdeEditor editor)
IdeEditor to be the active editor.IdeEditor object to be set activepublic void setDefaultEditor(IdeEditor editor)
IdeEditor to be the default editor.IdeEditor instance. If null, opens a new editor and sets it default.public void setPaneVisible(boolean value)
true then the editor pane will be made visible, invisible otherwise.
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||