|
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
| 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 | |
|---|---|
PageSaveablePart(Shell shell,
CompareConfiguration cc)
|
|
| Method Summary | |
|---|---|
void |
createPartControl(Composite parent2)
Creates the SWT controls for this workbench part. |
protected CompareConfiguration |
getCompareConfiguration()
|
protected ICompareInput |
getCompareInput(ISelection selection)
|
protected CompareViewerSwitchingPane |
getContentPane()
|
Control |
getControl()
Returns the primary control for this part. |
protected ArrayList |
getDirtyViewers()
|
protected CompareViewerPane |
getEditionPane()
|
protected Shell |
getShell()
|
protected CompareViewerSwitchingPane |
getStructuredComparePane()
|
abstract String |
getTitle()
Returns the title of this workbench part. |
abstract Image |
getTitleImage()
Returns the title image of this workbench part. |
protected void |
hookContentChangeListener(ICompareInput node)
|
boolean |
isDirty()
Returns whether the contents of this part have changed since the last save operation. |
protected void |
prepareCompareInput(ICompareInput input)
|
protected abstract void |
prepareInput(ICompareInput input,
CompareConfiguration configuration,
IProgressMonitor monitor)
|
protected void |
setDirty(boolean dirty)
|
protected void |
setInput(Object input)
|
void |
setShowContentPanes(boolean showContentPanes)
Set whether the file contents panes should be shown. |
| 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 |
| Methods inherited from interface org.eclipse.compare.IContentChangeListener |
|---|
contentChanged |
| Methods inherited from interface org.eclipse.ui.ISaveablePart |
|---|
doSave |
| Constructor Detail |
public PageSaveablePart(Shell shell,
CompareConfiguration cc)
| Method Detail |
public boolean isDirty()
ISaveablePartPROP_DIRTY.
Note: this method is called often on a part open or part activation switch, for example by actions to determine their enabled status.
isDirty in interface ISaveableParttrue if the contents have been modified and need
saving, and false if they have not changed since the last
savepublic 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 IWorkbenchPartparent2 - the parent controlprotected void setDirty(boolean dirty)
protected void setInput(Object input)
protected void prepareCompareInput(ICompareInput input)
protected abstract void prepareInput(ICompareInput input,
CompareConfiguration configuration,
IProgressMonitor monitor)
throws InvocationTargetException
InvocationTargetExceptionprotected void hookContentChangeListener(ICompareInput node)
public abstract String getTitle()
IWorkbenchPartPROP_TITLE.
The title is used to populate the title bar of this part's visual container.
getTitle in interface IWorkbenchPartnull)public abstract 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 IWorkbenchPartprotected Shell getShell()
protected CompareViewerPane getEditionPane()
protected CompareViewerSwitchingPane getStructuredComparePane()
protected CompareViewerSwitchingPane getContentPane()
protected ICompareInput getCompareInput(ISelection selection)
public void setShowContentPanes(boolean showContentPanes)
showContentPanes - whether to show contents panepublic Control getControl()
protected CompareConfiguration getCompareConfiguration()
protected ArrayList getDirtyViewers()
|
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.