Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.team.ui.history
Class HistoryPageSaveablePart


java.lang.Object
  extended by 

org.eclipse.team.ui.SaveablePartAdapter
      extended by 

org.eclipse.team.ui.PageSaveablePart
          extended by 
org.eclipse.team.ui.history.HistoryPageSaveablePart
All Implemented Interfaces:
IContentChangeListener, IAdaptable, ISaveableWorkbenchPart, ISaveablePart, IWorkbenchPart

Deprecated. use HistoryPageCompareEditorInput

public class HistoryPageSaveablePart
extends PageSaveablePart

Displays a history page combined with the compare/merge infrastructure. This only works properly if the history page adapts to an IHistoryCompareAdapter.

Since:
3.2

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 configuration, IHistoryPageSource pageSource, Object object)
          Deprecated. Create a history page part for the given page and object.
 
Method Summary
 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.
 
Methods inherited from class org.eclipse.team.ui. PageSaveablePart
createPartControl, doSave, getControl, getShell, isDirty, prepareCompareInput, setDirty, setNavigator, setPageDescription, setShowContentPanes
 
Methods inherited from class org.eclipse.team.ui. SaveablePartAdapter
addPropertyListener, 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

HistoryPageSaveablePart

public HistoryPageSaveablePart(
Shell shell,
                               
CompareConfiguration configuration,
                               
IHistoryPageSource pageSource,
                               
Object object)
Deprecated. 
Create a history page part for the given page and object.

Parameters:
shell - the parent shell
configuration - the compare configuration
pageSource - the page source
object - the object whose history is to be displayed
Method Detail

showHistoryInDialog

public static boolean showHistoryInDialog(
Shell shell,
                                          
Object object)
Deprecated. 
Show the history for the object in a dialog. The history will only be shown if an IHistoryPageSource can be found for the object.

Parameters:
shell - the parent sell
object - the object
Returns:
whether the object had an IHistoryPageSource available or not

getTitle

public 
String getTitle()
Deprecated. 
Description copied from interface: IWorkbenchPart
Returns the title of this workbench part. If this value changes the part must fire a property listener event with PROP_TITLE.

The title is used to populate the title bar of this part's visual container.

Returns:
the workbench part title (not null)

getTitleImage

public 
Image getTitleImage()
Deprecated. 
Description copied from interface: IWorkbenchPart
Returns the title image of this workbench part. If this value changes the part must fire a property listener event with 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.

Returns:
the title image

contentChanged

public void contentChanged(
IContentChangeNotifier source)
Deprecated. 
Description copied from interface: IContentChangeListener
Called whenever the content of the given source has changed.

Parameters:
source - the source whose contents has changed

createPage

protected 
Control createPage(
Composite parent,
                             
ToolBarManager toolBarManager)
Deprecated. 
Description copied from class: PageSaveablePart
Create the page for this part and return the top level control for the page.

Specified by:
createPage in class PageSaveablePart
Parameters:
parent - the parent composite
toolBarManager - the toolbar manager for the page
Returns:
the top-level control for the page

getSelectionProvider

protected final 
ISelectionProvider getSelectionProvider()
Deprecated. 
Description copied from class: PageSaveablePart
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.

Specified by:
getSelectionProvider in class PageSaveablePart
Returns:
the selection provider for the page

getCompareInput

protected 
ICompareInput getCompareInput(
ISelection selection)
Deprecated. 
Description copied from class: PageSaveablePart
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 implements ICompareInput. Subclasses may override.

Overrides:
getCompareInput in class PageSaveablePart
Parameters:
selection - the selection
Returns:
a compare input representing the selection

prepareInput

protected void prepareInput(
ICompareInput input,
                            
CompareConfiguration configuration,
                            
IProgressMonitor monitor)
                     throws 
InvocationTargetException
Deprecated. 
Description copied from class: PageSaveablePart
Prepare the compare input for display in a content viewer. This method is called from PageSaveablePart.prepareCompareInput(ICompareInput) and may be called from a non-UI thread. This method should not be called by others.

Specified by:
prepareInput in class PageSaveablePart
Parameters:
input - the input
configuration - the compare configuration
monitor - a progress monitor
Throws:
InvocationTargetException

dispose

public void dispose()
Deprecated. 
Description copied from interface: IWorkbenchPart
Disposes 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:
dispose in interface IWorkbenchPart
Overrides:
dispose in class SaveablePartAdapter

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire