de.cau.cs.kieler.kiml.ui.views
Class LayoutPropertySourceProvider

java.lang.Object
  extended by de.cau.cs.kieler.kiml.ui.views.LayoutPropertySourceProvider
All Implemented Interfaces:
IPropertySourceProvider

public class LayoutPropertySourceProvider
extends Object
implements IPropertySourceProvider

A property source provider used by the layout view.

Rating red

Constructor Summary
LayoutPropertySourceProvider()
           
 
Method Summary
 LayoutContext getContext()
          Return a layout context for the current selection.
 IPropertySource getPropertySource(Object object)
          
 IWorkbenchPart getWorkbenchPart()
          Return the currently tracked workbench part.
 boolean hasContent()
          Determine whether the property source provider has any cached content.
 void resetContext()
          Reset the cached content of this property source provider, so new property sources will be created on request.
 void resetContext(IWorkbenchPart theworkbenchPart)
          Reset the cached content and set up for a new workbench part.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutPropertySourceProvider

public LayoutPropertySourceProvider()
Method Detail

resetContext

public void resetContext()
Reset the cached content of this property source provider, so new property sources will be created on request.


resetContext

public void resetContext(IWorkbenchPart theworkbenchPart)
Reset the cached content and set up for a new workbench part.

Parameters:
theworkbenchPart - a workbench part, or null

getPropertySource

public IPropertySource getPropertySource(Object object)

Specified by:
getPropertySource in interface IPropertySourceProvider

getWorkbenchPart

public IWorkbenchPart getWorkbenchPart()
Return the currently tracked workbench part.

Returns:
the current workbench part

getContext

public LayoutContext getContext()
Return a layout context for the current selection. This context will merge information of all objects in the selection, but most values will be overridden by the last element of the selection.

Returns:
a layout context for the selection

hasContent

public boolean hasContent()
Determine whether the property source provider has any cached content.

Returns:
true if there is cached content