Package org.uberfire.lifecycle
Annotation Type OnMayClose
-
@Documented @Inherited @Retention(RUNTIME) @Target(METHOD) public @interface OnMayClose
Methods annotated with this will be called by the Workbench before the WorkbenchPart is closed. The method must be non-private, take zero arguments and return a boolean indicating whether the WorkbenchPart can be closed (true, it can be closed; false it cannot be closed).This annotation only works on methods of classes annotated with
@WorkbenchScreenor@WorkbenchEditor.