Interface StructureViewRenderer

All Superinterfaces:
EventListener
All Known Implementing Classes:
BrowserViewPanel, StructureViewPanel

public interface StructureViewRenderer extends EventListener
View renderers get notified of structure view update events and should update the display of the structure view accordingly.
Author:
Mik Kersten
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Highlights and selects the given node as active.
    void
    setActiveNode​(IStructureViewNode activeNode, int lineOffset)
    Same behavior as setActiveNode(StructureViewNode) but highlights a particular line within the span of the node.
    void
    updateView​(StructureView structureView)
    Implementors should updated the display of the corresponding file structure view.
  • Method Details

    • updateView

      void updateView(StructureView structureView)
      Implementors should updated the display of the corresponding file structure view.
    • setActiveNode

      void setActiveNode(IStructureViewNode node)
      Highlights and selects the given node as active. What "active" means depends on the renderer: a typical activation should cause the corresponding node's sourceline to be highlighted in the active editor.
    • setActiveNode

      void setActiveNode(IStructureViewNode activeNode, int lineOffset)
      Same behavior as setActiveNode(StructureViewNode) but highlights a particular line within the span of the node.
      Parameters:
      lineOffset - number of lines after the begin and before the end line of the corresponding StructureNode.