Overview

 
Package  Use  Tree  Deprecated  Index  Help 
Eclipse Platform
Release 3.0
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD


 

org.eclipse.ui.part
Class PageBookView.SelectionProvider

java.lang.Object
  extended byorg.eclipse.ui.part.PageBookView.SelectionProvider

All Implemented Interfaces:
ISelectionProvider

Enclosing class:
PageBookView


protected class PageBookView.SelectionProvider
extends Object
implements ISelectionProvider

A selection provider/listener for this view. It is a selection provider fo this view's site.


Constructor Summary
protected PageBookView.SelectionProvider()
           
 
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 selectionChanged(SelectionChangedEvent event)
          The selection has changed.
 void setSelection(ISelection selection)
          Sets the current selection for this selection provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

 

 

PageBookView.SelectionProvider

protected PageBookView.SelectionProvider()

Method Detail

 

 

addSelectionChangedListener

public void addSelectionChangedListener(ISelectionChangedListener listener)

Description copied from interface: ISelectionProvider
Adds a listener for selection changes in this selection provider. Has no effect if an identical listener is already registered.

Specified by:
addSelectionChangedListener in interface ISelectionProvider

Parameters:
listener - a selection changed listener


 

 

getSelection

public ISelection getSelection()

Description copied from interface: ISelectionProvider
Returns the current selection for this provider.

Specified by:
getSelection in interface ISelectionProvider

Returns:
the current selection


 

 

removeSelectionChangedListener

public void removeSelectionChangedListener(ISelectionChangedListener listener)

Description copied from interface: ISelectionProvider
Removes the given selection change listener from this selection provider. Has no affect if an identical listener is not registered.

Specified by:
removeSelectionChangedListener in interface ISelectionProvider

Parameters:
listener - a selection changed listener


 

 

selectionChanged

public void selectionChanged(SelectionChangedEvent event)

The selection has changed. Process the event.

Parameters:
event -


 

 

setSelection

public void setSelection(ISelection selection)

Description copied from interface: ISelectionProvider
Sets the current selection for this selection provider.

Specified by:
setSelection in interface ISelectionProvider

Parameters:
selection - the new selection


 

Overview

 
Package  Use  Tree  Deprecated  Index  Help 
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.