|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.editor.actions.AbstractActionContributor sk.uniba.euromath.editor.xmlEditor.actions.XMLActionContributor sk.uniba.euromath.editor.textEditor.actions.TextActionContributor
public class TextActionContributor
Constructor Summary | |
---|---|
TextActionContributor(EditorSite site,
org.eclipse.gef.GraphicalViewer viewer,
CaretManager caretManager)
Constructor. |
Method Summary | |
---|---|
protected IMultiViewAction |
checkOrCreateAction(String key)
Checks for action with id key in registry. |
protected void |
configureFactory()
Configures factory. |
protected void |
contributeToContextMenu(IMenuManager manager)
Fills context menu. |
void |
contributeToMenu(IMenuManager manager)
Contribute to global menu by modifying passed manager. |
void |
contributeToStatusLine(IStatusLineManager manager)
Contribute to status line by modifying passed manager. |
protected void |
createContextMenu()
Creates two more menus. |
protected EMMenuManager |
getEntityMenu()
|
protected EMMenuManager |
getInsertAtCaretMenu()
|
protected void |
populateDeleteMenu(IMenuManager manager)
Adds statically to more action to delete menu. |
protected void |
populateEntityMenu(IMenuManager manager)
Fills up entity menu to right content. |
protected void |
populateInsertAtCaretMenu(IMenuManager manager)
Fills up insert menu to right content. |
Methods inherited from class sk.uniba.euromath.editor.xmlEditor.actions.XMLActionContributor |
---|
contributeCoolBar, contributeToToolBar, getActionRegistry, getAttributeMenu, getContextMenuManager, getDeleteMenu, getEditorSite, getGlobalActionRegistry, getGraphicalViewer, getInsertAfterMenu, getInsertBeforeMenu, getInsertChildMenu, getWorkbenchPart, init, populateAttributeMenu, populateElementMenu, populateInsertPositionMenu, setEditorSite, setGlobalActionRegistry, setGraphicalViewer |
Methods inherited from class sk.uniba.euromath.editor.actions.AbstractActionContributor |
---|
checkOrCreateActions, getActionFactory, getDocumentModifyHelper, getSelectionActions, getXMLAccess, selectionChangedHandle, setActionFactory, setSelectionActions, setXMLAccess |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextActionContributor(EditorSite site, org.eclipse.gef.GraphicalViewer viewer, CaretManager caretManager)
site
- viewer
- caretProvider
- Method Detail |
---|
protected void configureFactory()
AbstractActionContributor
configureFactory
in class XMLActionContributor
protected IMultiViewAction checkOrCreateAction(String key)
AbstractActionContributor
checkOrCreateAction
in class AbstractActionContributor
key
- to identify action, must be IAction.getId()
protected void createContextMenu()
createContextMenu
in class XMLActionContributor
protected void contributeToContextMenu(IMenuManager manager)
XMLActionContributor
contributeToContextMenu
in class XMLActionContributor
protected void populateInsertAtCaretMenu(IMenuManager manager)
manager
- of insert menuprotected void populateEntityMenu(IMenuManager manager)
manager
- of entity menuprotected void populateDeleteMenu(IMenuManager manager)
populateDeleteMenu
in class XMLActionContributor
manager
- deleteMenu managerpublic void contributeToStatusLine(IStatusLineManager manager)
IActionContributor
contributeToStatusLine
in interface IActionContributor
contributeToStatusLine
in class XMLActionContributor
public void contributeToMenu(IMenuManager manager)
IActionContributor
contributeToMenu
in interface IActionContributor
contributeToMenu
in class XMLActionContributor
protected EMMenuManager getEntityMenu()
protected EMMenuManager getInsertAtCaretMenu()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |