mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 10:17:50 +08:00
working_with_custom_actions: grammar
This commit is contained in:
parent
45833dd855
commit
daf9f1effa
@ -118,7 +118,7 @@ After performing the steps described above we need to compile and run the plugin
|
||||
|
||||
### 1.5. Performing an action
|
||||
|
||||
In order to make the action do something we need to implement it's `public void actionPerformed(AnActionEvent anActionEvent);` method.
|
||||
In order to make the action do something we need to implement `public void actionPerformed(AnActionEvent anActionEvent);` method.
|
||||
In the following example action invokes a dialog that shows information about a selected Project View Item and has no icon and any pre-selected default option:
|
||||
|
||||
```java
|
||||
@ -134,7 +134,7 @@ public void actionPerformed(AnActionEvent anActionEvent) {
|
||||
|
||||
### 1.6. Setting up action's visibility and availability
|
||||
|
||||
To manipulate with action's visibility and availability we need to override it's `public void update(@NotNull AnActionEvent e);`
|
||||
To manipulate with action's visibility and availability we need to override `public void update(@NotNull AnActionEvent e);`
|
||||
|
||||
Default implementation of this method does nothing.
|
||||
Override this method to provide the ability to dynamically change action's state and(or) presentation depending on the context.
|
||||
|
Loading…
x
Reference in New Issue
Block a user