Package org.eclipse.ui.databinding
Class WorkbenchProperties
java.lang.Object
org.eclipse.ui.databinding.WorkbenchProperties
Deprecated.
Factory methods for creating properties for the Workbench.
Examples:
WorkbenchProperties.singleSelection().observe(getSite().getService(ISelectionService.class))
- Since:
- 3.5
- Restriction:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IValuePropertyadaptedValue(Class adapter) Deprecated.Returns a value property which observes the source object as the adapted type, using the platform adapter manager.static IListPropertyDeprecated.Returns a property for observing the elements of a structured selection as exposed byISelectionService.static IListPropertymultipleSelection(String partId, boolean postSelection) Deprecated.Returns a property for observing the elements of a structured selection as exposed byISelectionService.static IValuePropertyDeprecated.Returns a property for observing the first element of a structured selection as exposed byISelectionService.static IValuePropertysingleSelection(String partId, boolean postSelection) Deprecated.Returns a property for observing the first element of a structured selection as exposed byISelectionService.
-
Constructor Details
-
WorkbenchProperties
public WorkbenchProperties()Deprecated.
-
-
Method Details
-
adaptedValue
Deprecated.Returns a value property which observes the source object as the adapted type, using the platform adapter manager. If the source is of the target type, or can be adapted to the target type, this is used as the value of property, otherwisenull.- Parameters:
adapter- the adapter class- Returns:
- a value property which observes the source object as the adapted type.
-
singleSelection
Deprecated.Returns a property for observing the first element of a structured selection as exposed byISelectionService.- Returns:
- an observable value
-
singleSelection
Deprecated.Returns a property for observing the first element of a structured selection as exposed byISelectionService.- Parameters:
partId- the part id, ornullif the selection can be from any partpostSelection-trueif the selection should be delayed for keyboard-triggered selections- Returns:
- an observable value
-
multipleSelection
Deprecated.Returns a property for observing the elements of a structured selection as exposed byISelectionService.- Returns:
- an observable value
-
multipleSelection
Deprecated.Returns a property for observing the elements of a structured selection as exposed byISelectionService.- Parameters:
partId- the part id, ornullif the selection can be from any partpostSelection-trueif the selection should be delayed for keyboard-triggered selections- Returns:
- an observable value
-
WorkbenchProperties. That class creates typed property objects, while this class creates raw property objects.