Search in sources :

Example 1 with CMLQuickMenuCreator

use of org.contextmapper.dsl.ui.editor.CMLQuickMenuCreator in project context-mapper-dsl by ContextMapper.

the class RefactoringActionGroup method installQuickAccessAction.

private void installQuickAccessAction() {
    if (handlerService != null) {
        IHandler handler = new CMLQuickMenuCreator() {

            @Override
            protected void fillMenu(IMenuManager menu) {
                fillRefactorMenu(menu);
            }
        }.createHandler();
        handlerService.activateHandler(QUICK_MENU_ID, handler);
    }
}
Also used : CMLQuickMenuCreator(org.contextmapper.dsl.ui.editor.CMLQuickMenuCreator) IHandler(org.eclipse.core.commands.IHandler) IMenuManager(org.eclipse.jface.action.IMenuManager)

Example 2 with CMLQuickMenuCreator

use of org.contextmapper.dsl.ui.editor.CMLQuickMenuCreator in project context-mapper-dsl by ContextMapper.

the class GeneratorsActionGroup method installQuickAccessAction.

private void installQuickAccessAction() {
    if (handlerService != null) {
        IHandler handler = new CMLQuickMenuCreator() {

            @Override
            protected void fillMenu(IMenuManager menu) {
                fillRefactorMenu(menu);
            }
        }.createHandler();
        handlerService.activateHandler(QUICK_MENU_ID, handler);
    }
}
Also used : CMLQuickMenuCreator(org.contextmapper.dsl.ui.editor.CMLQuickMenuCreator) IHandler(org.eclipse.core.commands.IHandler) IMenuManager(org.eclipse.jface.action.IMenuManager)

Example 3 with CMLQuickMenuCreator

use of org.contextmapper.dsl.ui.editor.CMLQuickMenuCreator in project context-mapper-dsl by ContextMapper.

the class GeneratorsActionGroup method installQuickAccessAction.

private void installQuickAccessAction() {
    if (handlerService != null) {
        IHandler handler = new CMLQuickMenuCreator() {

            @Override
            protected void fillMenu(IMenuManager menu) {
                fillRefactorMenu(menu);
            }
        }.createHandler();
        handlerService.activateHandler(QUICK_MENU_ID, handler);
    }
}
Also used : CMLQuickMenuCreator(org.contextmapper.dsl.ui.editor.CMLQuickMenuCreator) IHandler(org.eclipse.core.commands.IHandler) IMenuManager(org.eclipse.jface.action.IMenuManager)

Aggregations

CMLQuickMenuCreator (org.contextmapper.dsl.ui.editor.CMLQuickMenuCreator)3 IHandler (org.eclipse.core.commands.IHandler)3 IMenuManager (org.eclipse.jface.action.IMenuManager)3