Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.databinding
Class WorkbenchProperties


java.lang.Object
  extended by 
org.eclipse.ui.databinding.WorkbenchProperties

public class WorkbenchProperties
extends Object

Factory methods for creating properties for the Workbench.

Examples:

 WorkbenchProperties.singleSelection().observe(
                getSite().getService(ISelectionService.class))
 

Since:
3.5

Constructor Summary
WorkbenchProperties ()
           
 
Method Summary
static org.eclipse.core.databinding.property.value.IValueProperty adaptedValue ( Class adapter)
          Returns a value property which observes the source object as the adapted type, using the platform adapter manager.
static org.eclipse.core.databinding.property.list.IListProperty multipleSelection ()
          Returns a property for observing the elements of a structured selection as exposed by ISelectionService.
static org.eclipse.core.databinding.property.list.IListProperty multipleSelection ( String partId, boolean postSelection)
          Returns a property for observing the elements of a structured selection as exposed by ISelectionService.
static org.eclipse.core.databinding.property.value.IValueProperty singleSelection ()
          Returns a property for observing the first element of a structured selection as exposed by ISelectionService.
static org.eclipse.core.databinding.property.value.IValueProperty singleSelection ( String partId, boolean postSelection)
          Returns a property for observing the first element of a structured selection as exposed by ISelectionService.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkbenchProperties

public WorkbenchProperties()
Method Detail

adaptedValue

public static org.eclipse.core.databinding.property.value.IValueProperty adaptedValue(
Class adapter)
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, otherwise null.

Parameters:
adapter - the adapter class
Returns:
a value property which observes the source object as the adapted type.

singleSelection

public static org.eclipse.core.databinding.property.value.IValueProperty singleSelection()
Returns a property for observing the first element of a structured selection as exposed by ISelectionService.

Returns:
an observable value

singleSelection

public static org.eclipse.core.databinding.property.value.IValueProperty singleSelection(
String partId,
                                                                                         boolean postSelection)
Returns a property for observing the first element of a structured selection as exposed by ISelectionService.

Parameters:
partId - the part id, or null if the selection can be from any part
postSelection - true if the selection should be delayed for keyboard-triggered selections
Returns:
an observable value

multipleSelection

public static org.eclipse.core.databinding.property.list.IListProperty multipleSelection()
Returns a property for observing the elements of a structured selection as exposed by ISelectionService.

Returns:
an observable value

multipleSelection

public static org.eclipse.core.databinding.property.list.IListProperty multipleSelection(
String partId,
                                                                                         boolean postSelection)
Returns a property for observing the elements of a structured selection as exposed by ISelectionService.

Parameters:
partId - the part id, or null if the selection can be from any part
postSelection - true if the selection should be delayed for keyboard-triggered selections
Returns:
an observable value

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire