@Throws(ExecutionException::class) fun execute(event: ExecutionEvent): Any? { val viewPart: IWorkbenchPart = HandlerUtil.getActivePart(event) if (viewPart is DroidsafeInfoOutlineViewPart) { val command: Command = event.getCommand() val oldValue: Boolean = HandlerUtil.toggleCommandState(command) (viewPart as DroidsafeInfoOutlineViewPart).setLongLabel(!oldValue) } return null }
Command implementation . Retrieves the value of the parameter value , and delegates to the view to set the correct value for the methods labels .