org.eclipse.wst.dtd.ui.views.contentoutline
Class DTDContentOutlineConfiguration

java.lang.Object
  extended by org.eclipse.wst.sse.ui.views.contentoutline.ContentOutlineConfiguration
      extended by org.eclipse.wst.dtd.ui.views.contentoutline.DTDContentOutlineConfiguration

public class DTDContentOutlineConfiguration
extends ContentOutlineConfiguration

Configuration for outline view page which shows DTD content.

Since:
1.0
See Also:
ContentOutlineConfiguration

Constructor Summary
DTDContentOutlineConfiguration()
          Default constructor for DTDContentOutlineConfiguration.
 
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.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.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, getSelection, getStatusLineLabelProvider, getToolbarContributions, isLinkedWithEditor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTDContentOutlineConfiguration

public DTDContentOutlineConfiguration()
Default constructor for DTDContentOutlineConfiguration.

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

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

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