|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.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 XMLActionContributorprotected void createContextMenu()
createContextMenu in class XMLActionContributorpublic void contributeToToolBar(IToolBarManager manager)
IActionContributor
contributeToToolBar in interface IActionContributorcontributeToToolBar in class XMLActionContributorprotected void contributeToContextMenu(IMenuManager manager)
XMLActionContributor
contributeToContextMenu in class XMLActionContributorprotected void populateInsertAtCaretMenu(IMenuManager manager)
manager - of insert menuprotected void populateEntityMenu(IMenuManager manager)
manager - of entity menu
protected void populateInsertPositionMenu(IMenuManager manager,
InsertPosition position)
XMLActionContributor
populateInsertPositionMenu in class XMLActionContributormanager - of insert before menuposition - any of InsertPositionpublic Map<String,IAction> getGlobalActionHandlers()
IActionContributor
getGlobalActionHandlers in interface IActionContributorgetGlobalActionHandlers in class XMLActionContributorpublic void contributeToStatusLine(IStatusLineManager manager)
IActionContributor
contributeToStatusLine in interface IActionContributorcontributeToStatusLine in class XMLActionContributorpublic void contributeToMenu(IMenuManager manager)
IActionContributor
contributeToMenu in interface IActionContributorcontributeToMenu in class XMLActionContributorprotected EMMenuManager getEntityMenu()
protected EMMenuManager getInsertAtCaretMenu()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||