Eclipse GEF
2.1

org.eclipse.gef.ui.parts
Class SelectionSynchronizer

java.lang.Object
  |
  +--org.eclipse.gef.ui.parts.SelectionSynchronizer
All Implemented Interfaces:
ISelectionChangedListener

public class SelectionSynchronizer
extends Object
implements ISelectionChangedListener


Constructor Summary
SelectionSynchronizer()
           
 
Method Summary
 void addViewer(EditPartViewer viewer)
           
protected  EditPart convert(EditPartViewer viewer, EditPart part)
          This method converts the given edit part into an edit part that is accepted by the given viewer.
 void removeViewer(EditPartViewer viewer)
           
 void selectionChanged(SelectionChangedEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionSynchronizer

public SelectionSynchronizer()
Method Detail

addViewer

public void addViewer(EditPartViewer viewer)

convert

protected EditPart convert(EditPartViewer viewer,
                           EditPart part)
This method converts the given edit part into an edit part that is accepted by the given viewer. It returns null if there is nothing in the viewer that corresponds to the given edit part. This method can be overridden by sub-classes to provide custom conversions, i.e. to provide a different implementation for converting edit parts.


removeViewer

public void removeViewer(EditPartViewer viewer)

selectionChanged

public void selectionChanged(SelectionChangedEvent event)
Specified by:
selectionChanged in interface ISelectionChangedListener

Eclipse GEF
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.