Package org.eclipse.ui.databinding
Class WorkbenchProperties
- java.lang.Object
-
- org.eclipse.ui.databinding.WorkbenchProperties
-
@Deprecated public class WorkbenchProperties extends Object
Deprecated.This class will be removed in a future release. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=546822 for more information. It has been replaced by the classWorkbenchProperties
. That class creates typed property objects, while this class creates raw property objects.Factory methods for creating properties for the Workbench.Examples:
WorkbenchProperties.singleSelection().observe(getSite().getService(ISelectionService.class))
- Since:
- 3.5
- Restriction:
-
-
Constructor Summary
Constructors Constructor Description WorkbenchProperties()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static IValueProperty
adaptedValue(Class adapter)
Deprecated.Returns a value property which observes the source object as the adapted type, using the platform adapter manager.static IListProperty
multipleSelection()
Deprecated.Returns a property for observing the elements of a structured selection as exposed byISelectionService
.static IListProperty
multipleSelection(String partId, boolean postSelection)
Deprecated.Returns a property for observing the elements of a structured selection as exposed byISelectionService
.static IValueProperty
singleSelection()
Deprecated.Returns a property for observing the first element of a structured selection as exposed byISelectionService
.static IValueProperty
singleSelection(String partId, boolean postSelection)
Deprecated.Returns a property for observing the first element of a structured selection as exposed byISelectionService
.
-
-
-
Method Detail
-
adaptedValue
public static IValueProperty adaptedValue(Class adapter)
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
public static IValueProperty singleSelection()
Deprecated.Returns a property for observing the first element of a structured selection as exposed byISelectionService
.- Returns:
- an observable value
-
singleSelection
public static IValueProperty singleSelection(String partId, boolean postSelection)
Deprecated.Returns a property for observing the first element of a structured selection as exposed byISelectionService
.- Parameters:
partId
- the part id, ornull
if the selection can be from any partpostSelection
-true
if the selection should be delayed for keyboard-triggered selections- Returns:
- an observable value
-
multipleSelection
public static IListProperty multipleSelection()
Deprecated.Returns a property for observing the elements of a structured selection as exposed byISelectionService
.- Returns:
- an observable value
-
multipleSelection
public static IListProperty multipleSelection(String partId, boolean postSelection)
Deprecated.Returns a property for observing the elements of a structured selection as exposed byISelectionService
.- Parameters:
partId
- the part id, ornull
if the selection can be from any partpostSelection
-true
if the selection should be delayed for keyboard-triggered selections- Returns:
- an observable value
-
-