org.eclipse.wst.css.ui.views.contentoutline
Class CSSContentOutlineConfiguration

java.lang.Object
  extended byorg.eclipse.wst.sse.ui.views.contentoutline.ContentOutlineConfiguration
      extended byorg.eclipse.wst.css.ui.views.contentoutline.CSSContentOutlineConfiguration

public class CSSContentOutlineConfiguration
extends ContentOutlineConfiguration

Configuration for outline view page which shows CSS content.

Since:
1.0
See Also:
ContentOutlineConfiguration

Constructor Summary
CSSContentOutlineConfiguration()
          Create new instance of CSSContentOutlineConfiguration
 
Method Summary
 IContributionItem[] createToolbarContributions(TreeViewer viewer)
           
 IContentProvider getContentProvider(TreeViewer viewer)
          Returns the ContentProvider to use with the given viewer.
 ILabelProvider getLabelProvider(TreeViewer viewer)
          Returns the LabelProvider for the items within the given viewer.
 ISelection getSelection(TreeViewer viewer, ISelection selection)
          Returns the (filtered) selection from the given selection.
 
Methods inherited from class org.eclipse.wst.sse.ui.views.contentoutline.ContentOutlineConfiguration
getKeyListeners, getMenuContributions, getMenuListener, getToolbarContributions, getTransferDragSourceListeners, getTransferDropTargetListeners, isLinkedWithEditor, unconfigure
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSSContentOutlineConfiguration

public CSSContentOutlineConfiguration()
Create new instance of CSSContentOutlineConfiguration

Method Detail

createToolbarContributions

public IContributionItem[] createToolbarContributions(TreeViewer viewer)
Parameters:
viewer - the TreeViewer associated with this configuration
Returns:
toolbar contributions

getContentProvider

public IContentProvider getContentProvider(TreeViewer viewer)
Description copied from class: ContentOutlineConfiguration
Returns the ContentProvider to use with the given viewer.

Specified by:
getContentProvider in class ContentOutlineConfiguration
Parameters:
viewer - the TreeViewer associated with this configuration
Returns:
the IContentProvider to use with this viewer

getLabelProvider

public ILabelProvider getLabelProvider(TreeViewer viewer)
Description copied from class: ContentOutlineConfiguration
Returns the LabelProvider for the items within the given viewer.

Overrides:
getLabelProvider in class ContentOutlineConfiguration
Parameters:
viewer - the TreeViewer associated with this configuration
Returns:
the ILabelProvider for items within the viewer

getSelection

public ISelection getSelection(TreeViewer viewer,
                               ISelection selection)
Description copied from class: ContentOutlineConfiguration
Returns the (filtered) selection from the given selection.

Overrides:
getSelection in class ContentOutlineConfiguration
Parameters:
selection - model selection
viewer - the TreeViewer associated with this configuration
Returns:
The (filtered) selection from this event. Uses include mapping model selection onto elements provided by the content provider. Should only return elements that will be shown in the Tree Control.