public class WorkbenchProperties extends Object
Examples:
WorkbenchProperties.singleSelection().observe(
getSite().getService(ISelectionService.class))
| Constructor and Description |
|---|
WorkbenchProperties() |
| Modifier and Type | Method and Description |
|---|---|
static IValueProperty |
adaptedValue(Class adapter)
Returns a value property which observes the source object as the adapted
type, using the platform adapter manager.
|
static IListProperty |
multipleSelection()
Returns a property for observing the elements of a structured selection
as exposed by
ISelectionService. |
static IListProperty |
multipleSelection(String partId,
boolean postSelection)
Returns a property for observing the elements of a structured selection
as exposed by
ISelectionService. |
static IValueProperty |
singleSelection()
Returns a property for observing the first element of a structured
selection as exposed by
ISelectionService. |
static IValueProperty |
singleSelection(String partId,
boolean postSelection)
Returns a property for observing the first element of a structured
selection as exposed by
ISelectionService. |
public static IValueProperty adaptedValue(Class adapter)
null.adapter - the adapter classpublic static IValueProperty singleSelection()
ISelectionService.public static IValueProperty singleSelection(String partId, boolean postSelection)
ISelectionService.partId - the part id, or null if the selection can be from
any partpostSelection - true if the selection should be delayed for
keyboard-triggered selectionspublic static IListProperty multipleSelection()
ISelectionService.public static IListProperty multipleSelection(String partId, boolean postSelection)
ISelectionService.partId - the part id, or null if the selection can be from
any partpostSelection - true if the selection should be delayed for
keyboard-triggered selections
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.