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.jface.viewers
Interface ISelectionProvider

All Known Subinterfaces:
IContentOutlinePage, IInputSelectionProvider, IPostSelectionProvider
All Known Implementing Classes:
AbstractListViewer, AbstractTableViewer, AbstractTextEditor.SelectionProvider, AbstractTreeViewer, CheckboxTableViewer, CheckboxTreeViewer, ColumnViewer, ComboViewer, CommonViewer, CompareViewerPane, CompareViewerSwitchingPane, ContainerCheckedTreeViewer, ContentMergeViewer, ContentOutline, ContentOutlinePage, ContentViewer, DiffTreeViewer, ListViewer, MultiPageSelectionProvider, PageBookView.SelectionProvider, ProjectionViewer, SourceViewer, StructureDiffViewer, StructuredViewer, TableTreeViewer, TableViewer, TextConsoleViewer, TextMergeViewer, TextViewer, TreeViewer, Viewer

public interface ISelectionProvider

Interface common to all objects that provide a selection.

See Also:
ISelection, ISelectionChangedListener, SelectionChangedEvent

Method Summary
 void addSelectionChangedListener ( ISelectionChangedListener listener)
          Adds a listener for selection changes in this selection provider.
  ISelection getSelection ()
          Returns the current selection for this provider.
 void removeSelectionChangedListener ( ISelectionChangedListener listener)
          Removes the given selection change listener from this selection provider.
 void setSelection ( ISelection selection)
          Sets the current selection for this selection provider.
 

Method Detail

addSelectionChangedListener

void addSelectionChangedListener(
ISelectionChangedListener listener)
Adds a listener for selection changes in this selection provider. Has no effect if an identical listener is already registered.

Parameters:
listener - a selection changed listener

getSelection


ISelection getSelection()
Returns the current selection for this provider.

Returns:
the current selection

removeSelectionChangedListener

void removeSelectionChangedListener(
ISelectionChangedListener listener)
Removes the given selection change listener from this selection provider. Has no affect if an identical listener is not registered.

Parameters:
listener - a selection changed listener

setSelection

void setSelection(
ISelection selection)
Sets the current selection for this selection provider.

Parameters:
selection - the new selection

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