org.mockcentral.editor.viewers
Class TreeViewerAdapter
java.lang.Object
org.mockcentral.editor.viewers.TreeViewerAdapter
- All Implemented Interfaces:
- org.mockcentral.editor.outline.IMockCentralEditorOutline
public class TreeViewerAdapter
- extends java.lang.Object
- implements org.mockcentral.editor.outline.IMockCentralEditorOutline
An adapter class that wraps a TreeViewer and implements the
IMockCentralEditorOutline interface.
- Author:
- David Hutchinson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeViewerAdapter
public TreeViewerAdapter(org.eclipse.jface.viewers.TreeViewer treeViewer,
MockCentralPluginTreeModel model)
- Creates a new instance, assigning the
TreeViewer and
IMockCentralPluginTreeModel.
- Parameters:
treeViewer - the TreeViewer.model - the MockCentralPluginTreeModel.
activateNode
public void activateNode(org.mockcentral.editor.nodes.MockCentralNode node)
- Specified by:
activateNode in interface org.mockcentral.editor.outline.IMockCentralEditorOutline
updateUI
public void updateUI()
- Specified by:
updateUI in interface org.mockcentral.editor.outline.IMockCentralEditorOutline
getActiveNode
public org.mockcentral.editor.nodes.MockCentralNode getActiveNode()
- Specified by:
getActiveNode in interface org.mockcentral.editor.outline.IMockCentralEditorOutline
findNode
public org.mockcentral.editor.nodes.MockCentralNode findNode(java.lang.String path)
- Specified by:
findNode in interface org.mockcentral.editor.outline.IMockCentralEditorOutline
nodeProblemsChanged
public void nodeProblemsChanged()
- Specified by:
nodeProblemsChanged in interface org.mockcentral.editor.outline.IMockCentralEditorOutline
collectNodeProblems
public java.util.List<org.mockcentral.editor.nodes.problem.NodeProblem> collectNodeProblems()
- Specified by:
collectNodeProblems in interface org.mockcentral.editor.outline.IMockCentralEditorOutline