|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.part.Page
org.eclipse.ui.views.contentoutline.ContentOutlinePage
org.mockcentral.editor.outline.MockCentralPluginOutlinePage
public class MockCentralPluginOutlinePage
A ContentOutlinePage for the Outline view. Uses a
TreeViewer built using a MockCentralTreeModel for
its ContentProvider that is built from the JDOM
Document passed to the constructor.
| Constructor Summary | |
|---|---|
MockCentralPluginOutlinePage(org.jdom.Document document,
org.eclipse.core.resources.IResource resource)
Creates a new instance, building a new MockCentralTreeModel
from the Document to provide content for the
TreeViewer. |
|
| Method Summary | |
|---|---|
void |
addNewChildren(java.util.List<org.mockcentral.editor.nodes.MockCentralNode> arg0)
|
void |
addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
|
void |
createControl(org.eclipse.swt.widgets.Composite parent)
|
void |
dispose()
|
protected void |
fillContextMenu(org.eclipse.jface.action.IMenuManager manager)
Adds dynamic content to the context menu. |
org.mockcentral.editor.nodes.IMockCentralClipboard |
getClipboard()
|
org.eclipse.swt.widgets.Control |
getControl()
|
org.mockcentral.editor.nodes.MockCentralGroupNodeModel |
getNodeGroupModel()
|
java.lang.Object |
getSelectedNode()
|
int |
getSelectedNodeIndex()
|
TreeViewerAdapter |
getTreeViewerAdapter()
Returns the TreeViewerAdapter. |
org.eclipse.jface.viewers.TreeViewer |
getViewer()
Returns the TreeViewer. |
void |
removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
|
void |
selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
|
void |
setResource(org.eclipse.core.resources.IResource resource)
Sets the IResource. |
void |
setSelection(org.eclipse.jface.viewers.ISelection selection)
|
void |
showCreateNewChildDialog()
|
void |
updateNodeProblems(java.util.List<org.mockcentral.editor.nodes.problem.NodeProblem> nodeProblems)
|
| Methods inherited from class org.eclipse.ui.views.contentoutline.ContentOutlinePage |
|---|
fireSelectionChanged, getSelection, getTreeViewer, init, setFocus |
| Methods inherited from class org.eclipse.ui.part.Page |
|---|
getSite, makeContributions, setActionBars |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.part.IPage |
|---|
setActionBars |
| Constructor Detail |
|---|
public MockCentralPluginOutlinePage(org.jdom.Document document,
org.eclipse.core.resources.IResource resource)
MockCentralTreeModel
from the Document to provide content for the
TreeViewer.
document - the JDOM Document used to create the
MockCentralTreeModel.resource - the IResource representing the currently
open configuration file. A persistent property is stored with the
resource recording the last-visited node before closing the file, which
will be navigated to when the file is next opened.| Method Detail |
|---|
public void createControl(org.eclipse.swt.widgets.Composite parent)
createControl in interface org.eclipse.ui.part.IPagecreateControl in class org.eclipse.ui.views.contentoutline.ContentOutlinePagepublic void addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
addSelectionChangedListener in interface org.eclipse.jface.viewers.ISelectionProvideraddSelectionChangedListener in class org.eclipse.ui.views.contentoutline.ContentOutlinePagepublic void removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
removeSelectionChangedListener in interface org.eclipse.jface.viewers.ISelectionProviderremoveSelectionChangedListener in class org.eclipse.ui.views.contentoutline.ContentOutlinePagepublic void setSelection(org.eclipse.jface.viewers.ISelection selection)
setSelection in interface org.eclipse.jface.viewers.ISelectionProvidersetSelection in class org.eclipse.ui.views.contentoutline.ContentOutlinePagepublic void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
selectionChanged in interface org.eclipse.jface.viewers.ISelectionChangedListenerselectionChanged in class org.eclipse.ui.views.contentoutline.ContentOutlinePagepublic TreeViewerAdapter getTreeViewerAdapter()
TreeViewerAdapter.
TreeViewerAdapter.public org.eclipse.jface.viewers.TreeViewer getViewer()
TreeViewer.
TreeViewer.public org.eclipse.swt.widgets.Control getControl()
getControl in interface org.eclipse.ui.part.IPagegetControl in class org.eclipse.ui.views.contentoutline.ContentOutlinePagepublic java.lang.Object getSelectedNode()
getSelectedNode in interface org.mockcentral.editor.viewers.IMockCentralNodeGroupViewerpublic int getSelectedNodeIndex()
getSelectedNodeIndex in interface org.mockcentral.editor.viewers.IMockCentralNodeGroupViewerpublic org.mockcentral.editor.nodes.MockCentralGroupNodeModel getNodeGroupModel()
getNodeGroupModel in interface org.mockcentral.editor.viewers.IMockCentralNodeGroupViewerpublic org.mockcentral.editor.nodes.IMockCentralClipboard getClipboard()
getClipboard in interface org.mockcentral.editor.viewers.IMockCentralNodeGroupViewerpublic void showCreateNewChildDialog()
showCreateNewChildDialog in interface org.mockcentral.editor.viewers.IMockCentralNodeGroupViewerpublic void dispose()
dispose in interface org.eclipse.ui.part.IPagedispose in class org.eclipse.ui.part.Pagepublic void setResource(org.eclipse.core.resources.IResource resource)
IResource.
resource - the IResource to set.public void updateNodeProblems(java.util.List<org.mockcentral.editor.nodes.problem.NodeProblem> nodeProblems)
updateNodeProblems in interface org.mockcentral.editor.nodes.problem.INodeProblemListenerpublic void addNewChildren(java.util.List<org.mockcentral.editor.nodes.MockCentralNode> arg0)
addNewChildren in interface org.mockcentral.editor.viewers.IMockCentralNodeGroupViewerprotected void fillContextMenu(org.eclipse.jface.action.IMenuManager manager)
manager - the IMenuManager providing the menu.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||