Inspectopedia Help

Unspecified action place

Reports passing unspecified place parameter for ActionManager.createActionToolbar() and ActionManager.createActionPopupMenu().

Specifying proper place is required to distinguish Action's usage in update()/actionPerformed() via AnActionEvent.getPlace().

Examples:

// bad: actionManager.createActionToolbar("", group, false); actionManager.createActionToolbar("unknown", group, false); actionManager.createActionPopupMenu(ActionPlaces.UNKNOWN, group); // good: actionManager.createActionToolbar("MyPlace", group, false); actionManager.createActionPopupMenu(ActionPlaces.EDITOR_TOOLBAR, group);

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Plugin DevKit, 233.SNAPSHOT

Last modified: 13 July 2023