|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.databinding.WorkbenchObservables
public class WorkbenchObservables
Factory methods for creating observables for Workbench objects
Constructor Summary | |
---|---|
WorkbenchObservables()
|
Method Summary | |
---|---|
static IObservableValue |
observeAdaptedSingleSelection(IServiceLocator locator,
Class targetType)
Returns an observable value that tracks the post selection of a selection service obtained through the given service locator, and adapts the first element of that selection to the given target type. |
static IObservableValue |
observeDetailAdaptedValue(IObservableValue master,
Class adapter)
Returns an observable with values of the given target type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkbenchObservables()
Method Detail |
---|
public static IObservableValue observeDetailAdaptedValue(IObservableValue master, Class adapter)
null
.
master
- the observable whose value should be adaptedadapter
- the target type
null
if the current value of the given observable does not adapt to
the target typepublic static IObservableValue observeAdaptedSingleSelection(IServiceLocator locator, Class targetType)
This method can be used by view or editor implementers to tie into the selection service, for example as follows:
IObservableValue selection = WorkbenchObservables .observeAdaptedSingleSelection(getSite(), IResource.class);
locator
- a service locator with an available ISelectionService
targetType
- the target type
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.