List of usage examples for com.intellij.openapi.actionSystem IdeActions GROUP_COMPILER_ERROR_VIEW_POPUP
String GROUP_COMPILER_ERROR_VIEW_POPUP
To view the source code for com.intellij.openapi.actionSystem IdeActions GROUP_COMPILER_ERROR_VIEW_POPUP.
Click Source Link
From source file:com.atlassian.clover.idea.CloverPlugin.java
/** * @see ApplicationComponent#initComponent() *//*from w ww. j a va 2 s . c om*/ @Override public void initComponent() { // run through initialisation sequence... CloverStartup.logVersionInfo(LOG); LOG.info("Plugin Version " + PluginVersionInfo.RELEASE_NUMBER + "[" + PluginVersionInfo.BUILD_NUMBER + "]"); loadLicense(); // TODO As we dropped IDEA 10.x we could add the <add-to-group group-id="CompilerErrorViewPopupMenu" anchor="last"/> // TODO for <action id="CloverPlugin.JumpToActualSource" ...> and remove the following lines. // TODO However, the LightIdeaTestCase does not register the CompilerErrorViewPopupMenu group which causes // TODO errors in our tests if we remove these lines and use the add-to-group. final ActionManager actionManager = ActionManager.getInstance(); DefaultActionGroup compilerPopupMenu = (DefaultActionGroup) actionManager .getAction(IdeActions.GROUP_COMPILER_ERROR_VIEW_POPUP); if (compilerPopupMenu == null) { compilerPopupMenu = new DefaultActionGroup(); actionManager.registerAction(IdeActions.GROUP_COMPILER_ERROR_VIEW_POPUP, compilerPopupMenu); } // Note: CloverPlugin.JumpToActualSource is defined in plugin.xml final AnAction action = actionManager.getAction("CloverPlugin.JumpToActualSource"); compilerPopupMenu.add(action, Constraints.LAST); }
From source file:com.intellij.compiler.impl.ProblemsViewPanel.java
License:Apache License
@Override protected void addExtraPopupMenuActions(DefaultActionGroup group) { group.add(new ExcludeFromCompileAction(myProject, this)); ActionGroup popupGroup = (ActionGroup) ActionManager.getInstance() .getAction(IdeActions.GROUP_COMPILER_ERROR_VIEW_POPUP); if (popupGroup != null) { for (AnAction action : popupGroup.getChildren(null)) { group.add(action);//from w ww . j a v a2 s . c o m } } }