|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockcentral.editor.components.MockCentralPluginNodeView
org.mockcentral.editor.components.MockCentralPluginNodeGroupView
public abstract class MockCentralPluginNodeGroupView
Base for the view classes used to edit MockCentralNode data
which display a group of child nodes. These editors are embedded in the
ScrolledPageBook on the EditorFormPage.
| Field Summary | |
|---|---|
protected java.lang.String |
allChildrenSectionTitleKey
A key for looking up the String to be used for the title of the Section containing the TableViewer that
displays the children. |
protected java.lang.String |
newButtonTipTextKey
A key for looking up the String to be used for the tooltip text for the 'new' Button. |
protected java.lang.String |
pageTitleKey
A key for looking up the String to be used for the title of the page. |
protected java.lang.String |
sortButtonTipTextKey
A key for looking up the String to be used for the tooltip text for the 'sort' Button. |
protected TableViewerAdapter |
tableViewerAdapter
the TableViewerAdapter containing the viewer for the group
of MockCentralNode children. |
| Fields inherited from class org.mockcentral.editor.components.MockCentralPluginNodeView |
|---|
imagesMap, page, toolkit |
| Constructor Summary | |
|---|---|
MockCentralPluginNodeGroupView(org.eclipse.ui.forms.widgets.FormToolkit toolkit,
org.eclipse.swt.widgets.Composite page)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
addNewChildren(java.util.List<org.mockcentral.editor.nodes.MockCentralNode> children)
Creates and executes a new AddMultipleNodesOperation with
the supplied list of MockCentralNode instances. |
void |
childrenChanged()
|
protected void |
createPageContent(org.eclipse.ui.forms.widgets.FormToolkit toolkit)
Creates the content of the page. |
void |
dispose()
Disposes of resources as necessary. |
void |
doubleClick(org.eclipse.jface.viewers.DoubleClickEvent event)
|
protected void |
fillContextMenu(org.eclipse.jface.action.IMenuManager manager)
Adds dynamic content to the context menu. |
org.mockcentral.editor.nodes.IMockCentralClipboard |
getClipboard()
|
java.lang.String |
getInputDescription()
|
org.mockcentral.editor.nodes.MockCentralGroupNodeModel |
getNodeGroupModel()
|
java.lang.Object |
getSelectedNode()
|
int |
getSelectedNodeIndex()
|
TableViewerAdapter |
getTableViewerAdapter()
Returns the TableViewerAdapter. |
void |
setNodeModel(org.mockcentral.editor.nodes.MockCentralNodeModel o)
|
abstract void |
showCreateNewChildDialog()
Displays a Dialog for creating a new entry for the group of
MockCentralNode instances. |
| Methods inherited from class org.mockcentral.editor.components.MockCentralPluginNodeView |
|---|
createButton, createLabel, getImagesMap, getOperationHistory, getUndoContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mockcentral.editor.nodes.problem.INodeProblemListener |
|---|
updateNodeProblems |
| Field Detail |
|---|
protected java.lang.String pageTitleKey
protected java.lang.String allChildrenSectionTitleKey
Section containing the TableViewer that
displays the children.
protected java.lang.String newButtonTipTextKey
Button.
protected java.lang.String sortButtonTipTextKey
Button.
protected TableViewerAdapter tableViewerAdapter
TableViewerAdapter containing the viewer for the group
of MockCentralNode children.
| Constructor Detail |
|---|
public MockCentralPluginNodeGroupView(org.eclipse.ui.forms.widgets.FormToolkit toolkit,
org.eclipse.swt.widgets.Composite page)
toolkit - the FormToolkit.page - the enclosing Composite.| Method Detail |
|---|
public void dispose()
dispose in class MockCentralPluginNodeViewpublic java.lang.String getInputDescription()
getInputDescription in interface org.mockcentral.editor.nodes.IMockCentralNodeViewpublic void setNodeModel(org.mockcentral.editor.nodes.MockCentralNodeModel o)
setNodeModel in interface org.mockcentral.editor.nodes.IMockCentralNodeViewpublic void childrenChanged()
childrenChanged in interface org.mockcentral.editor.nodes.IMockCentralGroupNodeModelObserverpublic void doubleClick(org.eclipse.jface.viewers.DoubleClickEvent event)
doubleClick in interface org.eclipse.jface.viewers.IDoubleClickListenerpublic abstract void showCreateNewChildDialog()
Dialog for creating a new entry for the group of
MockCentralNode instances.
showCreateNewChildDialog in interface org.mockcentral.editor.viewers.IMockCentralNodeGroupViewerpublic 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 TableViewerAdapter getTableViewerAdapter()
TableViewerAdapter.
TableViewerAdapter.public org.mockcentral.editor.nodes.IMockCentralClipboard getClipboard()
getClipboard in interface org.mockcentral.editor.viewers.IMockCentralNodeGroupViewerprotected void createPageContent(org.eclipse.ui.forms.widgets.FormToolkit toolkit)
toolkit - the FormToolkit.public void addNewChildren(java.util.List<org.mockcentral.editor.nodes.MockCentralNode> children)
AddMultipleNodesOperation with
the supplied list of MockCentralNode instances.
addNewChildren in interface org.mockcentral.editor.viewers.IMockCentralNodeGroupViewerchildren - a list of MockCentralNode instances.protected 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 | |||||||||