|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.viewers.Viewer
org.eclipse.jface.viewers.ContentViewer
org.eclipse.jface.viewers.StructuredViewer
org.eclipse.jface.viewers.AbstractTreeViewer
org.eclipse.jface.viewers.TreeViewer
org.eclipse.compare.structuremergeviewer.DiffTreeViewer
A tree viewer that works on objects implementing the IDiffContainer and IDiffElement interfaces.
This class may be instantiated; it is not intended to be subclassed outside this package.
Field Summary |
Fields inherited from class org.eclipse.jface.viewers.AbstractTreeViewer |
ALL_LEVELS |
Fields inherited from class org.eclipse.jface.viewers.Viewer |
WIDGET_DATA_KEY |
Constructor Summary | |
DiffTreeViewer(Composite parent,
CompareConfiguration configuration)
Creates a new viewer under the given SWT parent and with the specified configuration. | |
DiffTreeViewer(Tree tree,
CompareConfiguration configuration)
Creates a new viewer for the given SWT tree control with the specified configuration. |
Method Summary | |
protected void | copyOne(ICompareInput node,
boolean leftToRight)
Called to copy one side of the given node to the other. |
protected void | copySelected(boolean leftToRight)
Copies one side of all DiffNodes in the current selection to the other side. |
protected void | createToolItems(ToolBarManager toolbarManager)
This factory method is called after the viewer's controls have been created. |
protected boolean | dontExpand(Object o)
This hook method is called from within internalExpandToLevel to control whether a given model node should be expanded or not. |
protected void | expandSelection()
Expands to infinity all items in the selection. |
protected void | fillContextMenu(IMenuManager manager)
This method is called to add actions to the viewer's context menu. |
protected ResourceBundle | getBundle()
Returns the resource bundle. |
CompareConfiguration | getCompareConfiguration()
Returns the compare configuration of this viewer. |
String | getTitle()
Returns the viewer's name. |
protected void | handleDispose(DisposeEvent event)
Called on the viewer disposal. |
protected void | initialSelection()
This hook method is called from within inputChanged after a new input has been set but before any controls are updated. |
protected void | inputChanged(Object in,
Object oldInput)
Internal hook method called when the input to this viewer is initially set or subsequently changed. |
protected void | internalExpandToLevel(Widget node,
int level)
Overridden to avoid expanding DiffNodes that shouldn't expand. |
protected void | navigate(boolean next)
Selects the next (or previous) node of the current selection. |
protected void | propertyChange(PropertyChangeEvent event)
Tracks property changes of the configuration object. |
Methods inherited from class org.eclipse.jface.viewers.TreeViewer |
addTreeListener, doUpdateItem, getChildren, getControl, getExpanded, getItem, getItemCount, getItemCount, getItems, getLabelProvider, getParentItem, getSelection, getTree, newItem, removeAll, setExpanded, setLabelProvider, setSelection, showItem |
Methods inherited from class org.eclipse.jface.viewers.ContentViewer |
getContentProvider, getInput |
Methods inherited from class org.eclipse.jface.viewers.Viewer |
addHelpListener, addSelectionChangedListener, fireHelpRequested, fireSelectionChanged, getData, handleHelpRequest, removeHelpListener, removeSelectionChangedListener, setData, setSelection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.viewers.ISelectionProvider |
addSelectionChangedListener, removeSelectionChangedListener, setSelection |
Constructor Detail |
public DiffTreeViewer(Tree tree, CompareConfiguration configuration)
public DiffTreeViewer(Composite parent, CompareConfiguration configuration)
Method Detail |
public String getTitle()
protected ResourceBundle getBundle()
public CompareConfiguration getCompareConfiguration()
protected void handleDispose(DisposeEvent event)
protected void propertyChange(PropertyChangeEvent event)
protected void inputChanged(Object in, Object oldInput)
The default implementation does nothing. Subclassers may override this method to do something when a viewer's input is set. A typical use is populate the viewer.
protected void initialSelection()
protected void internalExpandToLevel(Widget node, int level)
protected boolean dontExpand(Object o)
protected void createToolItems(ToolBarManager toolbarManager)
Clients can override this method and are free to decide whether they want to call the inherited method.
protected void fillContextMenu(IMenuManager manager)
protected void expandSelection()
protected void copySelected(boolean leftToRight)
protected void copyOne(ICompareInput node, boolean leftToRight)
protected void navigate(boolean next)
|
Eclipse Platform Release 3.0 | ||||||||||
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, 2004. All rights reserved.