Package org.eclipse.team.ui
Class PageSaveablePart
java.lang.Object
org.eclipse.team.ui.SaveablePartAdapter
org.eclipse.team.ui.PageSaveablePart
- All Implemented Interfaces:
- IContentChangeListener,- IAdaptable,- ISaveableWorkbenchPart,- ISaveablePart,- IWorkbenchPart
- Direct Known Subclasses:
- HistoryPageSaveablePart,- ParticipantPageSaveablePart
@Deprecated
public abstract class PageSaveablePart
extends SaveablePartAdapter
implements IContentChangeListener
Deprecated.
Abstract class for hosting a page based structure input view for the purposes
 of feeding compare viewers.
- Since:
- 3.2
- Restriction:
- This class is not intended to be subclassed by clients outside of the Team framework.
- 
Field SummaryFields inherited from interface org.eclipse.team.ui.ISaveableWorkbenchPartPROP_DIRTYFields inherited from interface org.eclipse.ui.IWorkbenchPartPROP_TITLE
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedPageSaveablePart(Shell shell, CompareConfiguration compareConfiguration) Deprecated.Create a saveable part.
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract ControlcreatePage(Composite parent, ToolBarManager toolBarManager) Deprecated.Create the page for this part and return the top level control for the page.voidcreatePartControl(Composite parent) Deprecated.Creates the SWT controls for this workbench part.voiddoSave(IProgressMonitor monitor) Deprecated.This method flushes the content in any viewers.protected ICompareInputgetCompareInput(ISelection selection) Deprecated.Return a compare input that represents the selection.Deprecated.Returns the primary control for this part.protected abstract ISelectionProviderDeprecated.Return the selection provider for the page.protected ShellgetShell()Deprecated.Return the parent shell of this part.booleanisDirty()Deprecated.Returns whether the contents of this part have changed since the last save operation.protected voidprepareCompareInput(ICompareInput input) Deprecated.Convenience method that callsprepareInput(ICompareInput, CompareConfiguration, IProgressMonitor)with a progress monitor.protected abstract voidprepareInput(ICompareInput input, CompareConfiguration configuration, IProgressMonitor monitor) Deprecated.Prepare the compare input for display in a content viewer.protected voidsetDirty(boolean dirty) Deprecated.Set the saveable part's dirty state to the given state.protected voidsetNavigator(ISynchronizePageConfiguration configuration) Deprecated.This method is internal to the framework and should not be called by clients outside of the framework.protected voidsetPageDescription(String title) Deprecated.Set the title of the page's page to the given text.voidsetShowContentPanes(boolean showContentPanes) Deprecated.Set whether the file contents panes should be shown.Methods inherited from class org.eclipse.team.ui.SaveablePartAdapteraddPropertyListener, dispose, doSaveAs, getAdapter, getSite, getTitleToolTip, isSaveAsAllowed, isSaveOnCloseNeeded, removePropertyListener, setFocusMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.compare.IContentChangeListenercontentChangedMethods inherited from interface org.eclipse.ui.IWorkbenchPartgetTitle, getTitleImage
- 
Constructor Details- 
PageSaveablePartDeprecated.Create a saveable part.- Parameters:
- shell- the shell for the part
- compareConfiguration- the compare configuration
 
 
- 
- 
Method Details- 
isDirtypublic boolean isDirty()Deprecated.Description copied from interface:ISaveablePartReturns whether the contents of this part have changed since the last save operation. If this value changes the part must fire a property listener event withPROP_DIRTY.Note: this method is called often on a part open or part activation switch, for example by actions to determine their enabled status. - Specified by:
- isDirtyin interface- ISaveablePart
- Returns:
- trueif the contents have been modified and need saving, and- falseif they have not changed since the last save
 
- 
createPartControlDeprecated.Description copied from interface:IWorkbenchPartCreates the SWT controls for this workbench part.Clients 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: - Create one or more controls within the parent.
- Set the parent layout as needed.
- Register any global actions with the site's
 IActionBars.
- Register any context menus with the site.
- Register a selection provider with the site, to make it available to the
 workbench's ISelectionService(optional).
 - Specified by:
- createPartControlin interface- IWorkbenchPart
- Parameters:
- parent- the parent control
 
- 
getSelectionProviderDeprecated.Return the selection provider for the page. This method is called after the page is created in order to register a selection listener on the page.- Returns:
- the selection provider for the page
 
- 
createPageDeprecated.Create the page for this part and return the top level control for the page.- Parameters:
- parent- the parent composite
- toolBarManager- the toolbar manager for the page
- Returns:
- the top-level control for the page
 
- 
setPageDescriptionDeprecated.Set the title of the page's page to the given text. The title will appear in the header of the pane containing the page.- Parameters:
- title- the page's title
 
- 
setDirtyprotected void setDirty(boolean dirty) Deprecated.Set the saveable part's dirty state to the given state.- Parameters:
- dirty- the dirty state
 
- 
prepareCompareInputDeprecated.Convenience method that callsprepareInput(ICompareInput, CompareConfiguration, IProgressMonitor)with a progress monitor.- Parameters:
- input- the compare input to be prepared
 
- 
prepareInputprotected abstract void prepareInput(ICompareInput input, CompareConfiguration configuration, IProgressMonitor monitor) throws InvocationTargetException Deprecated.Prepare the compare input for display in a content viewer. This method is called fromprepareCompareInput(ICompareInput)and may be called from a non-UI thread. This method should not be called by others.- Parameters:
- input- the input
- configuration- the compare configuration
- monitor- a progress monitor
- Throws:
- InvocationTargetException- if an error occurs
 
- 
getShellDeprecated.Return the parent shell of this part.- Returns:
- the parent shell of this part
 
- 
getCompareInputDeprecated.Return a compare input that represents the selection. This input is used to feed the structure and content viewers. By default, a compare input is returned if the selection is of size 1 and the selected element implementsICompareInput. Subclasses may override.- Parameters:
- selection- the selection
- Returns:
- a compare input representing the selection
 
- 
setShowContentPanespublic void setShowContentPanes(boolean showContentPanes) Deprecated.Set whether the file contents panes should be shown. If they are not, only the page will be shown.- Parameters:
- showContentPanes- whether to show contents pane
 
- 
getControlDeprecated.Returns the primary control for this part.- Returns:
- the primary control for this part.
 
- 
doSaveDeprecated.This method flushes the content in any viewers. Subclasses should override if they need to perform additional processing when a save is performed.- Specified by:
- doSavein interface- ISaveablePart
- Parameters:
- monitor- a progress monitor
 
 
- 
CompareEditorInputandCompareUI.openCompareDialog(org.eclipse.compare.CompareEditorInput)