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

java.lang.Object
  extended by org.eclipse.wst.sse.ui.views.contentoutline.ContentOutlineConfiguration
      extended by org.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
 org.eclipse.jface.action.IContributionItem[] createToolbarContributions(org.eclipse.jface.viewers.TreeViewer viewer)
          Creates the toolbar contributions.
 org.eclipse.jface.viewers.IContentProvider getContentProvider(org.eclipse.jface.viewers.TreeViewer viewer)
          Returns the ContentProvider to use with the given viewer.
 org.eclipse.jface.viewers.ILabelProvider getLabelProvider(org.eclipse.jface.viewers.TreeViewer viewer)
          Returns the LabelProvider for the items within the given viewer.
 org.eclipse.jface.viewers.ISelection getSelection(org.eclipse.jface.viewers.TreeViewer viewer, org.eclipse.jface.viewers.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, getStatusLineLabelProvider, 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 org.eclipse.jface.action.IContributionItem[] createToolbarContributions(org.eclipse.jface.viewers.TreeViewer viewer)
Description copied from class: ContentOutlineConfiguration
Creates the toolbar contributions. Subclasses should merge their contributions with these.

Parameters:
viewer - the TreeViewer associated with this configuration
Returns:
toolbar contributions

getContentProvider

public org.eclipse.jface.viewers.IContentProvider getContentProvider(org.eclipse.jface.viewers.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 org.eclipse.jface.viewers.ILabelProvider getLabelProvider(org.eclipse.jface.viewers.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 org.eclipse.jface.viewers.ISelection getSelection(org.eclipse.jface.viewers.TreeViewer viewer,
                                                         org.eclipse.jface.viewers.ISelection selection)
Description copied from class: ContentOutlineConfiguration
Returns the (filtered) selection from the given selection.

Overrides:
getSelection in class ContentOutlineConfiguration
Parameters:
viewer - the TreeViewer associated with this configuration
selection - model selection
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.