|
Eclipse Platform Release 3.2 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.team.ui.SaveablePartAdapter
org.eclipse.team.ui.PageSaveablePart
org.eclipse.team.ui.history.HistoryPageSaveablePart
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.team.ui.ISaveableWorkbenchPart |
|---|
PROP_DIRTY |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
PROP_TITLE |
| Constructor Summary | |
|---|---|
HistoryPageSaveablePart(Shell shell,
CompareConfiguration cc,
IHistoryPage pageSource)
|
|
| Method Summary | |
|---|---|
void |
contentChanged(IContentChangeNotifier source)
Called whenever the content of the given source has changed. |
void |
createPartControl(Composite parent2)
Creates the SWT controls for this workbench part. |
void |
doSave(IProgressMonitor monitor)
Saves the contents of this part. |
String |
getTitle()
Returns the title of this workbench part. |
Image |
getTitleImage()
Returns the title image of this workbench part. |
protected void |
prepareInput(ICompareInput input,
CompareConfiguration configuration,
IProgressMonitor monitor)
|
| Methods inherited from class org.eclipse.team.ui.PageSaveablePart |
|---|
getCompareConfiguration, getCompareInput, getContentPane, getControl, getDirtyViewers, getEditionPane, getShell, getStructuredComparePane, hookContentChangeListener, isDirty, prepareCompareInput, setDirty, setInput, setShowContentPanes |
| Methods inherited from class org.eclipse.team.ui.SaveablePartAdapter |
|---|
addPropertyListener, dispose, doSaveAs, getAdapter, getSite, getTitleToolTip, isSaveAsAllowed, isSaveOnCloseNeeded, removePropertyListener, setFocus |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HistoryPageSaveablePart(Shell shell,
CompareConfiguration cc,
IHistoryPage pageSource)
| Method Detail |
public String getTitle()
IWorkbenchPartPROP_TITLE.
The title is used to populate the title bar of this part's visual container.
getTitle in interface IWorkbenchPartgetTitle in class PageSaveablePartpublic Image getTitleImage()
IWorkbenchPartPROP_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.
getTitleImage in interface IWorkbenchPartgetTitleImage in class PageSaveablePartpublic void contentChanged(IContentChangeNotifier source)
IContentChangeListener
source - the source whose contents has changedpublic void createPartControl(Composite parent2)
IWorkbenchPartClients should not call this method (the workbench calls this method when it needs to, which may be never).
For implementors this is a multi-step process:
IActionBars.ISelectionService (optional).
createPartControl in interface IWorkbenchPartcreatePartControl in class PageSaveablePart
protected void prepareInput(ICompareInput input,
CompareConfiguration configuration,
IProgressMonitor monitor)
throws InvocationTargetException
prepareInput in class PageSaveablePartInvocationTargetExceptionpublic void doSave(IProgressMonitor monitor)
ISaveablePart
If the save is successful, the part should fire a property changed event
reflecting the new dirty state (PROP_DIRTY property).
If the save is cancelled through user action, or for any other reason, the
part should invoke setCancelled on the IProgressMonitor
to inform the caller.
This method is long-running; progress and cancellation are provided by the given progress monitor.
monitor - the progress monitor
|
Eclipse Platform Release 3.2 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.