net.refractions.udig.issues
Interface IIssuesExpansionProvider


public interface IIssuesExpansionProvider

An expansion provider controls which elements in the issues viewer are expanded or not. This is by necessity dependent on which IIssuesContentProvider is set on the viewer.

Since:
1.1.0
Author:
Jesse
See Also:
IssueConfiguration.setExpansionProvider(IIssuesExpansionProvider), IssueConfiguration.setContentProvider(IIssuesContentProvider)

Method Summary
 boolean expand(TreeViewer viewer, TreeItem item, java.lang.Object element)
          Called when an object has a child.
 java.lang.String getExtensionID()
          Returns the extension id so that the system can instantiate the sorter again in the future after the workbench has been shutdown.
 

Method Detail

expand

boolean expand(TreeViewer viewer,
               TreeItem item,
               java.lang.Object element)
Called when an object has a child. Should return true if the element should be expanded. Do NOT modify item or viewer just use the read only methods.

Parameters:
viewer - tree viewer that is being expanded.
item - tree item that contains the object.
element - element to test whether it should be expanded.
Returns:
true if element should be expanded.

getExtensionID

java.lang.String getExtensionID()
Returns the extension id so that the system can instantiate the sorter again in the future after the workbench has been shutdown.

Returns:
pluginID.extensionid.