mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
[code] custom group of actions
This commit is contained in:
parent
e8776bd347
commit
028cccd7ed
@ -63,5 +63,9 @@
|
|||||||
the current action is inserted. -->
|
the current action is inserted. -->
|
||||||
<add-to-group group-id="ToolsMenu" anchor="first"/>
|
<add-to-group group-id="ToolsMenu" anchor="first"/>
|
||||||
</action>
|
</action>
|
||||||
|
<group id="org.jetbrains.tutorials.actions.SimpleGroup" class="org.jetbrains.tutorials.actions.SimpleGroup"
|
||||||
|
text="Simple Action Group" description="Action Group Demo">
|
||||||
|
<add-to-group group-id="EditorPopupMenu" anchor="first"/>
|
||||||
|
</group>
|
||||||
</actions>
|
</actions>
|
||||||
</idea-plugin>
|
</idea-plugin>
|
@ -0,0 +1,17 @@
|
|||||||
|
package org.jetbrains.tutorials.actions;
|
||||||
|
|
||||||
|
import com.intellij.openapi.actionSystem.ActionGroup;
|
||||||
|
import com.intellij.openapi.actionSystem.AnAction;
|
||||||
|
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Anna Bulenkova
|
||||||
|
*/
|
||||||
|
public class SimpleGroup extends ActionGroup {
|
||||||
|
@NotNull
|
||||||
|
@Override
|
||||||
|
public AnAction[] getChildren(AnActionEvent anActionEvent) {
|
||||||
|
return new AnAction[0];
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user