| |
|
| org.eclipse.ui.part.WorkbenchPart org.eclipse.ui.part.EditorPart org.eclipse.ui.part.MultiPageEditor
MultiPageEditor | abstract public class MultiPageEditor extends EditorPart (Code) | | Abstract superclass of all multi-page workbench editors.
This class should be subclassed by clients wishing to define new
multi-page editor.
Subclasses must implement the following methods:
createPartControl - to create the view's controls
setFocus - to accept focus
isDirty - to decide whether a significant change has
occurred
doSave - to save contents of editor
doSaveAs - to save contents of editor
Subclasses may extend or reimplement the following methods as required:
setInitializationData - extend to provide additional
initialization when editor extension is instantiated
init(IEditorSite,IEditorInput) - extend to provide
additional initialization when editor is assigned its site
isSaveOnCloseNeeded - override to control saving
isSaveAsAllowed - override to control saving
gotoMarker - reimplement to make selections based on
markers
dispose - extend to provide additional cleanup
getAdapter - reimplement to make their editor
adaptable
|
Constructor Summary | |
public | MultiPageEditor() Creates a new multi-page editor. |
Method Summary | |
protected void | addSyncroPageBook(PageBook pageBook) Adds a synchronized pagebook to this editor. | public void | createPartControl(Composite parent) The MultiPageEditor implementation of this IWorkbenchPart
method creates a TabFolder control. | protected TabFolder | getFolder() Returns this editor's workbook. | protected void | onPageChange() Indicates that a page change has occurred. | protected void | removeSyncroPageBook(PageBook pageBook) Removes a synchronized pagebook from this editor. | protected void | sync() Synchronizes each registered pagebook with the editor page. | protected void | syncPageBook(PageBook pageBook) Sets the visible page of the given pagebook to be the same as
the visible page of this editor. |
MultiPageEditor | public MultiPageEditor()(Code) | | Creates a new multi-page editor.
|
addSyncroPageBook | protected void addSyncroPageBook(PageBook pageBook)(Code) | | Adds a synchronized pagebook to this editor. Once added, the
visible page of the pagebook and the visible page of the editor
will be synchronized.
Parameters: pageBook - the pagebook to add |
createPartControl | public void createPartControl(Composite parent)(Code) | | The MultiPageEditor implementation of this IWorkbenchPart
method creates a TabFolder control.
|
getFolder | protected TabFolder getFolder()(Code) | | Returns this editor's workbook.
the editor workbook |
onPageChange | protected void onPageChange()(Code) | | Indicates that a page change has occurred. Updates the sync vector.
|
sync | protected void sync()(Code) | | Synchronizes each registered pagebook with the editor page.
|
syncPageBook | protected void syncPageBook(PageBook pageBook)(Code) | | Sets the visible page of the given pagebook to be the same as
the visible page of this editor.
Parameters: pageBook - a pagebook to synchronize |
|
|
|