public class HistoryPageSaveablePart extends PageSaveablePart
IHistoryCompareAdapter
.PROP_DIRTY
PROP_TITLE
Constructor and Description |
---|
HistoryPageSaveablePart(Shell shell,
CompareConfiguration configuration,
IHistoryPageSource pageSource,
Object object)
Deprecated.
Create a history page part for the given page and object.
|
Modifier and Type | Method and Description |
---|---|
void |
contentChanged(IContentChangeNotifier source)
Deprecated.
Called whenever the content of the given source has changed.
|
protected Control |
createPage(Composite parent,
ToolBarManager toolBarManager)
Deprecated.
Create the page for this part and return the top level control
for the page.
|
void |
dispose()
Deprecated.
Disposes of this workbench part.
|
protected ICompareInput |
getCompareInput(ISelection selection)
Deprecated.
Return a compare input that represents the selection.
|
protected ISelectionProvider |
getSelectionProvider()
Deprecated.
Return the selection provider for the page.
|
String |
getTitle()
Deprecated.
Returns the title of this workbench part.
|
Image |
getTitleImage()
Deprecated.
Returns the title image of this workbench part.
|
protected void |
prepareInput(ICompareInput input,
CompareConfiguration configuration,
IProgressMonitor monitor)
Deprecated.
Prepare the compare input for display in a content viewer.
|
static boolean |
showHistoryInDialog(Shell shell,
Object object)
Deprecated.
Show the history for the object in a dialog.
|
createPartControl, doSave, getControl, getShell, isDirty, prepareCompareInput, setDirty, setNavigator, setPageDescription, setShowContentPanes
addPropertyListener, doSaveAs, getAdapter, getSite, getTitleToolTip, isSaveAsAllowed, isSaveOnCloseNeeded, removePropertyListener, setFocus
public HistoryPageSaveablePart(Shell shell, CompareConfiguration configuration, IHistoryPageSource pageSource, Object object)
shell
- the parent shellconfiguration
- the compare configurationpageSource
- the page sourceobject
- the object whose history is to be displayedpublic static boolean showHistoryInDialog(Shell shell, Object object)
IHistoryPageSource
can be found for the object.shell
- the parent sellobject
- the objectIHistoryPageSource
available or notpublic String getTitle()
IWorkbenchPart
PROP_TITLE
.
The title is used to populate the title bar of this part's visual container.
null
)public Image getTitleImage()
IWorkbenchPart
PROP_TITLE
.
The title image is usually used to populate the title bar of this part's visual container. Since this image is managed by the part itself, callers must not dispose the returned image.
public void contentChanged(IContentChangeNotifier source)
IContentChangeListener
source
- the source whose contents has changedprotected Control createPage(Composite parent, ToolBarManager toolBarManager)
PageSaveablePart
createPage
in class PageSaveablePart
parent
- the parent compositetoolBarManager
- the toolbar manager for the pageprotected final ISelectionProvider getSelectionProvider()
PageSaveablePart
getSelectionProvider
in class PageSaveablePart
protected ICompareInput getCompareInput(ISelection selection)
PageSaveablePart
ICompareInput
.
Subclasses may override.getCompareInput
in class PageSaveablePart
selection
- the selectionprotected void prepareInput(ICompareInput input, CompareConfiguration configuration, IProgressMonitor monitor) throws InvocationTargetException
PageSaveablePart
PageSaveablePart.prepareCompareInput(ICompareInput)
and may be called
from a non-UI thread. This method should not be called by others.prepareInput
in class PageSaveablePart
input
- the inputconfiguration
- the compare configurationmonitor
- a progress monitorInvocationTargetException
public void dispose()
IWorkbenchPart
This is the last method called on the IWorkbenchPart
. At this
point the part controls (if they were ever created) have been disposed as part
of an SWT composite. There is no guarantee that createPartControl() has been
called, so the part controls may never have been created.
Within this method a part may release any resources, fonts, images, etc. held by this part. It is also very important to deregister all listeners from the workbench.
Clients should not call this method (the workbench calls this method at appropriate times).
dispose
in interface IWorkbenchPart
dispose
in class SaveablePartAdapter
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.