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 GEF
3.3

org.eclipse.gef
Class SelectionManager

java.lang.Object
  extended by
org.eclipse.gef.SelectionManager

public class SelectionManager
extends java.lang.Object

Manages a viewer's selection model. Selection management includes representing a form of selection which is available to clients of a viewer as an ISelection. It also includes managing the notion of focus, which is closely tied to the current selection. The selection manager provides the mechanism for modifying the selection and any validation.

WARNING: Subclassing this class is considered experimental at this point.

Since:
3.2

Constructor Summary
protected SelectionManager ()
          Default Constructor
 
Method Summary
 void appendSelection ( EditPart editpart)
          Appends the EditPart to the current selection.
static  SelectionManager createDefault ()
          Creates the default implementation for a selection manager.
 void deselect ( EditPart editpart)
          Removes the EditPart from the current selection.
 void deselectAll ()
          Deselects everything.
protected  void fireSelectionChanged ()
          Causes the viewer to fire selection changed notification to all listeners.
protected   EditPart getFocus ()
          Returns the focus editpart.
  ISelection getSelection ()
          Returns the current selection.
protected   EditPartViewer getViewer ()
          Returns null or the viewer whose selection is managed.
protected  void hookViewer ( EditPartViewer viewer)
          Provides a hook for when the viewer has been set.
 void internalHookControl (Control control)
          For internal use only.
 void internalInitialize ( EditPartViewer viewer, java.util.List selection, java.lang.Runnable notifier)
          For internal use only.
 void internalUninstall ()
          For internal use only.
 void setFocus ( EditPart part)
          Sets the focus part.
 void setSelection ( ISelection newSelection)
          Sets the selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionManager

protected SelectionManager()
Default Constructor

Since:
3.2
Method Detail

createDefault

public static 
SelectionManager createDefault()
Creates the default implementation for a selection manager.

Returns:
the default selection manager
Since:
3.2

appendSelection

public void appendSelection(
EditPart editpart)
Appends the EditPart to the current selection. The EditPart becomes the new primary selection. Fires selection changed to all ISelectionChangedListeners.

Parameters:
editpart - the EditPart to append
Since:
3.2

deselect

public void deselect(
EditPart editpart)
Removes the EditPart from the current selection.

Parameters:
editpart - the editpart
Since:
3.2

deselectAll

public void deselectAll()
Deselects everything.

Since:
3.2

fireSelectionChanged

protected final void fireSelectionChanged()
Causes the viewer to fire selection changed notification to all listeners.

Since:
3.2

getFocus

protected 
EditPart getFocus()
Returns the focus editpart.

Returns:
the focus editpart
Since:
3.2

getSelection

public 
ISelection getSelection()
Returns the current selection.

Returns:
the selection
Since:
3.2

getViewer

protected 
EditPartViewer getViewer()
Returns null or the viewer whose selection is managed.

Returns:
null or the viewer
Since:
3.2

internalHookControl

public void internalHookControl(Control control)
For internal use only. This API is subject to change.

Parameters:
control - the control
Since:
3.2

internalUninstall

public void internalUninstall()
For internal use only. This API is subject to change.

Since:
3.2

hookViewer

protected void hookViewer(
EditPartViewer viewer)
Provides a hook for when the viewer has been set.

Parameters:
viewer - the viewer.
Since:
3.2

internalInitialize

public void internalInitialize(
EditPartViewer viewer,
                               java.util.List selection,
                               java.lang.Runnable notifier)
For internal use only.

Parameters:
viewer - viewer
selection - selection
notifier - notifier
Since:
3.2

setFocus

public void setFocus(
EditPart part)
Sets the focus part.

Parameters:
part - the focus part
Since:
3.2

setSelection

public void setSelection(
ISelection newSelection)
Sets the selection.

Parameters:
newSelection - the new selection
Since:
3.2

Eclipse GEF
3.3

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

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