Package org.eclipse.ui.part
Class MultiPageEditor
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.ui.part.MultiPageEditor
- All Implemented Interfaces:
IAdaptable,IExecutableExtension,IEditorPart,ISaveablePart,IWorkbenchPart,IWorkbenchPart2,IWorkbenchPart3,IWorkbenchPartOrientation
Deprecated, for removal: This API element is subject to removal in a future version.
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 controlssetFocus- to accept focusisDirty- to decide whether a significant change has occurreddoSave- to save contents of editordoSaveAs- 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 instantiatedinit(IEditorSite,IEditorInput)- extend to provide additional initialization when editor is assigned its siteisSaveOnCloseNeeded- override to control savingisSaveAsAllowed- override to control savinggotoMarker- reimplement to make selections based on markersdispose- extend to provide additional cleanupgetAdapter- reimplement to make their editor adaptable
- Restriction:
- This class is not intended to be subclassed by clients.
- Restriction:
- This class is not intended to be referenced by clients. Marked for deletion see Bug 547018.
-
Field Summary
Fields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUTFields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSyncroPageBook(PageBook pageBook) Deprecated, for removal: This API element is subject to removal in a future version.Adds a synchronized pagebook to this editor.voidcreatePartControl(Composite parent) Deprecated, for removal: This API element is subject to removal in a future version.TheMultiPageEditorimplementation of thisIWorkbenchPartmethod creates aTabFoldercontrol.protected TabFolderDeprecated, for removal: This API element is subject to removal in a future version.Returns this editor's workbook.protected voidDeprecated, for removal: This API element is subject to removal in a future version.Indicates that a page change has occurred.protected voidremoveSyncroPageBook(PageBook pageBook) Deprecated, for removal: This API element is subject to removal in a future version.Removes a synchronized pagebook from this editor.protected voidsync()Deprecated, for removal: This API element is subject to removal in a future version.Synchronizes each registered pagebook with the editor page.protected voidsyncPageBook(PageBook pageBook) Deprecated, for removal: This API element is subject to removal in a future version.Sets the visible page of the given pagebook to be the same as the visible page of this editor.Methods inherited from class org.eclipse.ui.part.EditorPart
checkSite, doSave, doSaveAs, getEditorInput, getEditorSite, getTitleToolTip, init, isDirty, isSaveAsAllowed, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartNameMethods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, dispose, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setFocus, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusyMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, dispose, getSite, getTitle, getTitleImage, removePropertyListener, setFocus
-
Constructor Details
-
MultiPageEditor
Deprecated.Use the classMultiPageEditorPartinsteadCreates a new multi-page editor.
-
-
Method Details
-
addSyncroPageBook
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.TheMultiPageEditorimplementation of thisIWorkbenchPartmethod creates aTabFoldercontrol.- Specified by:
createPartControlin interfaceIWorkbenchPart- Specified by:
createPartControlin classWorkbenchPart- Parameters:
parent- the parent control
-
getFolder
Deprecated, for removal: This API element is subject to removal in a future version.Returns this editor's workbook.- Returns:
- the editor workbook
-
onPageChange
protected void onPageChange()Deprecated, for removal: This API element is subject to removal in a future version.Indicates that a page change has occurred. Updates the sync vector. -
removeSyncroPageBook
Deprecated, for removal: This API element is subject to removal in a future version.Removes a synchronized pagebook from this editor.- Parameters:
pageBook- the pagebook to remove- See Also:
-
sync
protected void sync()Deprecated, for removal: This API element is subject to removal in a future version.Synchronizes each registered pagebook with the editor page. -
syncPageBook
Deprecated, for removal: This API element is subject to removal in a future version.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
-
MultiPageEditorPartinstead