org.eclipse.wst.xml.ui.views.contentoutline
Class XMLContentOutlineConfiguration

java.lang.Object
  extended by org.eclipse.wst.sse.ui.views.contentoutline.ContentOutlineConfiguration
      extended by org.eclipse.wst.xml.ui.views.contentoutline.XMLContentOutlineConfiguration
Direct Known Subclasses:
HTMLContentOutlineConfiguration

public class XMLContentOutlineConfiguration
extends ContentOutlineConfiguration

Outline Configuration for generic XML support, expects that the viewer's input will be the DOM Model.

Since:
1.0
See Also:
ContentOutlineConfiguration

Constructor Summary
XMLContentOutlineConfiguration()
          Create new instance of XMLContentOutlineConfiguration
 
Method Summary
 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.action.IMenuListener getMenuListener(org.eclipse.jface.viewers.TreeViewer viewer)
          Returns the menu listener to notify when the given viewer's context menu is about to be shown or null.
 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.
 org.eclipse.jface.viewers.ILabelProvider getStatusLineLabelProvider(org.eclipse.jface.viewers.TreeViewer treeViewer)
           
 org.eclipse.jface.util.TransferDragSourceListener[] getTransferDragSourceListeners(org.eclipse.jface.viewers.TreeViewer treeViewer)
          Adopted since you can't easily removeDragSupport from StructuredViewers.
 org.eclipse.jface.util.TransferDropTargetListener[] getTransferDropTargetListeners(org.eclipse.jface.viewers.TreeViewer treeViewer)
          Adopted since you can't easily removeDropSupport from StructuredViewers.
 void unconfigure(org.eclipse.jface.viewers.TreeViewer viewer)
          General hook for resource releasing and listener removal when configurations change or the viewer is disposed of.
 
Methods inherited from class org.eclipse.wst.sse.ui.views.contentoutline.ContentOutlineConfiguration
getKeyListeners, getMenuContributions, getToolbarContributions, isLinkedWithEditor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLContentOutlineConfiguration

public XMLContentOutlineConfiguration()
Create new instance of XMLContentOutlineConfiguration

Method Detail

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

getMenuListener

public org.eclipse.jface.action.IMenuListener getMenuListener(org.eclipse.jface.viewers.TreeViewer viewer)
Description copied from class: ContentOutlineConfiguration
Returns the menu listener to notify when the given viewer's context menu is about to be shown or null.

Overrides:
getMenuListener in class ContentOutlineConfiguration
Parameters:
viewer - the TreeViewer associated with this configuration
Returns:
the IMenuListener to notify when the viewer's context menu is about to be shown, or null

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.

getStatusLineLabelProvider

public org.eclipse.jface.viewers.ILabelProvider getStatusLineLabelProvider(org.eclipse.jface.viewers.TreeViewer treeViewer)
Overrides:
getStatusLineLabelProvider in class ContentOutlineConfiguration
Returns:
a label provider providing the status line contents

getTransferDragSourceListeners

public org.eclipse.jface.util.TransferDragSourceListener[] getTransferDragSourceListeners(org.eclipse.jface.viewers.TreeViewer treeViewer)
Description copied from class: ContentOutlineConfiguration
Adopted since you can't easily removeDragSupport from StructuredViewers.

Overrides:
getTransferDragSourceListeners in class ContentOutlineConfiguration
Parameters:
treeViewer - the TreeViewer associated with this configuration
Returns:
an array of TransferDragSourceListeners

getTransferDropTargetListeners

public org.eclipse.jface.util.TransferDropTargetListener[] getTransferDropTargetListeners(org.eclipse.jface.viewers.TreeViewer treeViewer)
Description copied from class: ContentOutlineConfiguration
Adopted since you can't easily removeDropSupport from StructuredViewers.

Overrides:
getTransferDropTargetListeners in class ContentOutlineConfiguration
Parameters:
treeViewer - the TreeViewer associated with this configuration
Returns:
an array of TransferDropTargetListeners

unconfigure

public void unconfigure(org.eclipse.jface.viewers.TreeViewer viewer)
Description copied from class: ContentOutlineConfiguration
General hook for resource releasing and listener removal when configurations change or the viewer is disposed of. This implementation stops of any remaining PropertyChangeUpdateActionContributionItem from preference listening.

Overrides:
unconfigure in class ContentOutlineConfiguration
Parameters:
viewer - the TreeViewer associated with this configuration