Class ParticipantPageSaveablePart
- All Implemented Interfaces:
IContentChangeListener,IAdaptable,ISaveableWorkbenchPart,ISaveablePart,IWorkbenchPart
ModelSynchronizeParticipant.- Since:
- 3.0
-
Field Summary
Fields inherited from interface org.eclipse.team.ui.ISaveableWorkbenchPart
PROP_DIRTYFields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Constructor Summary
ConstructorsConstructorDescriptionParticipantPageSaveablePart(Shell shell, CompareConfiguration cc, ISynchronizePageConfiguration pageConfiguration, ISynchronizeParticipant participant) Deprecated.Creates a part for the provided participant. -
Method Summary
Modifier and TypeMethodDescriptionvoidcontentChanged(IContentChangeNotifier source) Deprecated.Called whenever the content of the given source has changed.protected ControlcreatePage(Composite parent, ToolBarManager toolBarManager) Deprecated.Create the page for this part and return the top level control for the page.voiddispose()Deprecated.Disposes of this workbench part.voidDeprecated.This method flushes the content in any viewers.protected ICompareInputgetCompareInput(ISelection selection) Deprecated.Return a compare input that represents the selection.Deprecated.Return the synchronize page configuration for this partDeprecated.Return the Synchronize participant for this partprotected final ISelectionProviderDeprecated.Return the selection provider for the page.getTitle()Deprecated.Returns the title of this workbench part.Deprecated.Returns the title image of this workbench part.booleanisDirty()Deprecated.Returns whether the contents of this part have changed since the last save operation.protected voidprepareInput(ICompareInput input, CompareConfiguration configuration, IProgressMonitor monitor) Deprecated.Prepare the compare input for display in a content viewer.Methods inherited from class org.eclipse.team.ui.PageSaveablePart
createPartControl, getControl, getShell, prepareCompareInput, setDirty, setNavigator, setPageDescription, setShowContentPanesMethods inherited from class org.eclipse.team.ui.SaveablePartAdapter
addPropertyListener, doSaveAs, getAdapter, getSite, getTitleToolTip, isSaveAsAllowed, isSaveOnCloseNeeded, removePropertyListener, setFocus
-
Constructor Details
-
ParticipantPageSaveablePart
public ParticipantPageSaveablePart(Shell shell, CompareConfiguration cc, ISynchronizePageConfiguration pageConfiguration, ISynchronizeParticipant participant) Deprecated.Creates a part for the provided participant. The page configuration is used when creating the participant page and the resulting compare/merge panes will be configured with the provided compare configuration.For example, clients can decide if the user can edit the compare panes by calling
CompareConfiguration.setLeftEditable(boolean)orCompareConfiguration.setRightEditable(boolean).- Parameters:
shell- the parent shell for this partcc- the compare configuration that will be used to create the compare panespageConfiguration- the configuration that will be provided to the participant prior to creating the pageparticipant- the participant whose page will be displayed in this part
-
-
Method Details
-
dispose
public void dispose()Deprecated.Description copied from interface:IWorkbenchPartDisposes of this workbench part.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).
- Specified by:
disposein interfaceIWorkbenchPart- Overrides:
disposein classSaveablePartAdapter
-
getTitleImage
Deprecated.Description copied from interface:IWorkbenchPartReturns the title image of this workbench part. If this value changes the part must fire a property listener event withPROP_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.
- Specified by:
getTitleImagein interfaceIWorkbenchPart- Returns:
- the title image
-
getTitle
Deprecated.Description copied from interface:IWorkbenchPartReturns the title of this workbench part. If this value changes the part must fire a property listener event withPROP_TITLE.The title is used to populate the title bar of this part's visual container.
- Specified by:
getTitlein interfaceIWorkbenchPart- Returns:
- the workbench part title (not
null)
-
isDirty
public 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 interfaceISaveablePart- Overrides:
isDirtyin classPageSaveablePart- Returns:
trueif the contents have been modified and need saving, andfalseif they have not changed since the last save
-
contentChanged
Deprecated.Description copied from interface:IContentChangeListenerCalled whenever the content of the given source has changed.- Specified by:
contentChangedin interfaceIContentChangeListener- Parameters:
source- the source whose contents has changed
-
doSave
Deprecated.Description copied from class:PageSaveablePartThis 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 interfaceISaveablePart- Overrides:
doSavein classPageSaveablePart- Parameters:
pm- a progress monitor
-
createPage
Deprecated.Description copied from class:PageSaveablePartCreate the page for this part and return the top level control for the page.- Specified by:
createPagein classPageSaveablePart- Parameters:
parent- the parent compositetoolBarManager- the toolbar manager for the page- Returns:
- the top-level control for the page
-
getSelectionProvider
Deprecated.Description copied from class:PageSaveablePartReturn 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.- Specified by:
getSelectionProviderin classPageSaveablePart- Returns:
- the selection provider for the page
-
prepareInput
protected 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 fromPageSaveablePart.prepareCompareInput(ICompareInput)and may be called from a non-UI thread. This method should not be called by others.- Specified by:
prepareInputin classPageSaveablePart- Parameters:
input- the inputconfiguration- the compare configurationmonitor- a progress monitor- Throws:
InvocationTargetException- if an error occurs- Since:
- 3.2
-
getPageConfiguration
Deprecated.Return the synchronize page configuration for this part- Returns:
- Returns the pageConfiguration.
-
getParticipant
Deprecated.Return the Synchronize participant for this part- Returns:
- Returns the participant.
-
getCompareInput
Deprecated.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.- Overrides:
getCompareInputin classPageSaveablePart- Parameters:
selection- the selection- Returns:
- a compare input representing the selection
- Since:
- 3.2
-
PageCompareEditorInputandCompareUI.openCompareDialog(org.eclipse.compare.CompareEditorInput)