From a02b113b5ca4301a02879e4787890ec91c465fc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Tue, 14 May 2024 13:56:47 +0200 Subject: [PATCH] links: gh-jcef -> gh-jcef-master --- topics/reference_guide/jcef.md | 16 ++++++++-------- v.list | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/topics/reference_guide/jcef.md b/topics/reference_guide/jcef.md index 989ae8865..ee08b4700 100644 --- a/topics/reference_guide/jcef.md +++ b/topics/reference_guide/jcef.md @@ -114,7 +114,7 @@ Browser client provides an interface for setting up [handlers](#event-handlers) Handlers allow reacting to these events in plugin code and change browser's behavior. Each browser is tied to a single client and a single client can be shared with multiple browser instances. -Browser client is represented by [`JBCefClient`](%gh-ic%/platform/platform-api/src/com/intellij/ui/jcef/JBCefClient.java), which is a wrapper for JCEF's [`CefClient`](%gh-jcef%/org/cef/CefClient.java). +Browser client is represented by [`JBCefClient`](%gh-ic%/platform/platform-api/src/com/intellij/ui/jcef/JBCefClient.java), which is a wrapper for JCEF's [`CefClient`](%gh-jcef-master%/org/cef/CefClient.java). `JBCefClient` allows registering multiple handlers of the same type, which is not possible with `CefClient`. To access the underlying `CefClient` and its API, call `JBCefClient.getCefClient()`. @@ -132,21 +132,21 @@ To access the client associated with a browser, call `JBCefBrowser.getJBCefClien JCEF API provides various event handler interfaces that allows handling a wide set of events emitted by the browser. Example handlers: -- [`CefLoadHandler`](%gh-jcef%/org/cef/handler/CefLoadHandler.java) - handles browser loading events.
+- [`CefLoadHandler`](%gh-jcef-master%/org/cef/handler/CefLoadHandler.java) - handles browser loading events.
**Example**: Implement `CefLoadHandler.onLoadEnd()` to [execute scripts](#executing-javascript) after document is loaded. -- [`CefDisplayHandler`](%gh-jcef%/org/cef/handler/CefDisplayHandler.java) - handles events related to browser display state.
+- [`CefDisplayHandler`](%gh-jcef-master%/org/cef/handler/CefDisplayHandler.java) - handles events related to browser display state.
**Example**: Implement `CefDisplayHandler.onAddressChange()` to load project files in the browser when a local file link is clicked, or opening an external browser if an external link is clicked. -- [`CefContextMenuHandler`](%gh-jcef%/org/cef/handler/CefContextMenuHandler.java) - handles context menu events.
+- [`CefContextMenuHandler`](%gh-jcef-master%/org/cef/handler/CefContextMenuHandler.java) - handles context menu events.
**Example**: Implement `CefContextMenuHandler.onBeforeContextMenu()` to change the items of the browser context menu. -- [`CefDownloadHandler`](%gh-jcef%/org/cef/handler/CefDownloadHandler.java) - file download events.
+- [`CefDownloadHandler`](%gh-jcef-master%/org/cef/handler/CefDownloadHandler.java) - file download events.
**Example**: Implement `CefDownloadHandler.onBeforeDownload()` to enable downloading files in the embedded browser. -See [org.cef.handler](%gh-jcef%/org/cef/handler) package for all available handlers. +See [org.cef.handler](%gh-jcef-master%/org/cef/handler) package for all available handlers. -> For each handler interface, JCEF API provides an adapter class, which can be extended to avoid implementing unused methods, e.g., [`CefLoadHandlerAdapter`](%gh-jcef%/org/cef/handler/CefLoadHandlerAdapter.java). +> For each handler interface, JCEF API provides an adapter class, which can be extended to avoid implementing unused methods, e.g., [`CefLoadHandlerAdapter`](%gh-jcef-master%/org/cef/handler/CefLoadHandlerAdapter.java). Handlers should be registered with `JBCefClient.getCefClient().add*Handler()` methods. @@ -235,7 +235,7 @@ In cases when a plugin feature implements a web-based UI, the plugin may provide Such resources cannot be easily accessed by the browser. They can be made accessible by implementing proper request [handlers](#event-handlers), which make them available to the browser at predefined URLs. -This approach requires implementing [`CefRequestHandler`](%gh-jcef%/org/cef/handler/CefRequestHandler.java), and [`CefResourceRequestHandler`](%gh-jcef%/org/cef/handler/CefResourceRequestHandler.java), which map resource paths to resource providers. +This approach requires implementing [`CefRequestHandler`](%gh-jcef-master%/org/cef/handler/CefRequestHandler.java), and [`CefResourceRequestHandler`](%gh-jcef-master%/org/cef/handler/CefResourceRequestHandler.java), which map resource paths to resource providers. Serving such resources is implemented by the Image Viewer component responsible for displaying SVG files in IntelliJ Platform-based IDEs. See [`JCefImageViewer`](%gh-ic%/images/src/org/intellij/images/editor/impl/jcef/JCefImageViewer.kt) and related classes for the implementation details. diff --git a/v.list b/v.list index a15a34bf7..0c4e89d71 100644 --- a/v.list +++ b/v.list @@ -19,7 +19,7 @@ - +