public @interface GuiInitAction
initial settings for actions: it can enables confirmation dialog before execution
@GuiIncluded(description="help message")
@GuiInits(action = @GuiInitAction
(confirm=true))
//show a confirmation dialog before running the action method
//the dialog includes the message specified the above "description" of GuiIncluded
public void myAction() {
...
}
- Since:
- 1.8
- See Also:
-
Optional Element Summary
Optional Elements
-
Element Details
-
confirm
boolean confirm- Returns:
- if true, the attached action needs to confirm before an execution. Note: the setting only work for explicit execution, not for auto-selection.
- Default:
false
-