net.refractions.udig.catalog.ui
Class CatalogTreeViewer

java.lang.Object
  extended by TreeViewer
      extended by net.refractions.udig.catalog.ui.CatalogTreeViewer

public class CatalogTreeViewer
extends TreeViewer

Provides Tree view of the Registry.

Supports the following:

To display a message or status please use a Collections.singletonList( "hello world" ).

Since:
0.3
Author:
jeichar

Constructor Summary
CatalogTreeViewer(Composite parent)
          Construct CatalogTreeViewer.
CatalogTreeViewer(Composite parent, boolean titles)
          Construct CatalogTreeViewer.
CatalogTreeViewer(Composite parent, int style, boolean titles)
          Construct CatalogTreeViewer.
 
Method Summary
 void selectionChanged(SelectionChangedEvent event)
           
 void setMessageBoard(IMessageBoard messageBoard)
          Sets the message board that this viewer will display status messages on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalogTreeViewer

public CatalogTreeViewer(Composite parent,
                         boolean titles)
Construct CatalogTreeViewer.

Parameters:
parent -

CatalogTreeViewer

public CatalogTreeViewer(Composite parent)
Construct CatalogTreeViewer.

Parameters:
parent -

CatalogTreeViewer

public CatalogTreeViewer(Composite parent,
                         int style,
                         boolean titles)
Construct CatalogTreeViewer.

You will need to set your input:


 CatalogTreeViewer viewer = new CatalogTreeViewer(parent, SWT.DEFAULT);
 viewer.setInput(CatalogPlugin.getDefault().getLocalCatalog());
 

Parameters:
parent - Parent component
style - The other constructor uses SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER
Method Detail

selectionChanged

public void selectionChanged(SelectionChangedEvent event)

setMessageBoard

public void setMessageBoard(IMessageBoard messageBoard)
Sets the message board that this viewer will display status messages on.

Parameters:
messageBoard -
See Also:
StatusLineMessageBoardAdapter, IResolve#getStatus(), IResolve#getMessage()