|
||||||||||
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
Field Summary |
---|
Fields inherited from class sk.uniba.euromath.editor.xmlEditor.actions.XMLActionContributor |
---|
attributeMenu, contextMenu, insertAfterMenu, insertBeforeMenu, insertChildMenu |
Constructor Summary | |
---|---|
TextActionContributor(EditorSite site,
org.eclipse.gef.GraphicalViewer viewer,
CaretManager caretManager)
Constructor. |
Method Summary | |
---|---|
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. |
void |
contributeToToolBar(IToolBarManager manager)
Contribute to global tool bar by modifying passed manager. |
protected void |
createContextMenu()
Creates two more menus. |
protected EMMenuManager |
getEntityMenu()
|
Map<String,IAction> |
getGlobalActionHandlers()
Return global action handlers, which are registred when associated IEditor is gains focus and removed when losts focus; |
protected EMMenuManager |
getInsertAtCaretMenu()
|
protected void |
populateEntityMenu(IMenuManager manager)
Fills up entity menu to right content. |
protected void |
populateInsertAtCaretMenu(IMenuManager manager)
Fills up insert menu to right content. |
protected void |
populateInsertPositionMenu(IMenuManager manager,
InsertPosition position)
Fills up insert before/child/after/ at caret menu to right content. |
Methods inherited from class sk.uniba.euromath.editor.xmlEditor.actions.XMLActionContributor |
---|
contributeCoolBar, getActionRegistry, getEditorSite, getGlobalActionRegistry, getGraphicalViewer, getWorkbenchPart, init, populateAttributeMenu, populateElementMenu, setEditorSite, setGlobalActionRegistry, setGraphicalViewer |
Methods inherited from class sk.uniba.euromath.editor.actions.AbstractActionContributor |
---|
checkOrCreateAction, checkOrCreateActions, dispose, getActionFactory, getDocumentModifyHelper, getXMLAccess, selectionChanged, setActionFactory, setXMLAccess, stackChanged |
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 void createContextMenu()
createContextMenu
in class XMLActionContributor
public void contributeToToolBar(IToolBarManager manager)
IActionContributor
contributeToToolBar
in interface IActionContributor
contributeToToolBar
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 populateInsertPositionMenu(IMenuManager manager, InsertPosition position)
XMLActionContributor
populateInsertPositionMenu
in class XMLActionContributor
manager
- of insert before menuposition
- any of InsertPosition
public Map<String,IAction> getGlobalActionHandlers()
IActionContributor
getGlobalActionHandlers
in interface IActionContributor
getGlobalActionHandlers
in class XMLActionContributor
public 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 |