com.vaadin.copilot.
Interface CopilotCommand
All Known Implementing Classes:
AccessibilityCheckerMessageHandler
, AICommandHandler
, AnalyticsInterceptor
, ApplicationInitializer
, DevSetupHandler
, DocsHandler
, ErrorHandler
, FeedbackHandler
, GenerateTestsHandler
, HotswapDownloadHandler
, I18nHandler
, IdeHandler
, IdePluginCommandHandler
, InfoHandler
, JavaParserHandler
, JavaRewriteHandler
, MachineConfigurationHandler
, OpenComponentInIDE
, PreviewHandler
, ProjectFileHandler
, RouteHandler
, ThemeEditorMessageHandler
, UiServiceHandler
, UserInfoHandler
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
canBeParallelCommand
(String command) Checks if given command can be handled asynchronously.
default void
handleConnect
(DevToolsInterface devToolsInterface) boolean
handleMessage
(String command, elemental.json.JsonObject data, DevToolsInterface devToolsInterface)
-
Field Details
-
KEY_REQ_ID
See Also:
-
KEY_CANCEL_REQ_ID
See Also:
-
-
Method Details
-
handleMessage
boolean handleMessage(String command, elemental.json.JsonObject data, DevToolsInterface devToolsInterface) -
handleConnect
-
canBeParallelCommand
Checks if given command can be handled asynchronously. If the handler can't be asynchronous at all, it can return false always. But if you want to handle one or more commands asynchronously, you should specify the exact command to prevent handling commands that are not part of the handler as asynchronous.
Parameters:
command
-Returns:
true if the command can be handled by this command handler
-