URLStreamHandlerPluginExtension
allows the developer to
work with a protocol that he designed for retrieving and storing files. There is
one method that has to be implemented:
getURLStreamHandler()
. It takes as an argument the
name of the protocol and returns the handler for it, or null if it was not able
to find it.
With the help of the URLChooserPluginExtension
interface, it is possible to write your own dialog that will work with the
custom protocol. This interface provides two methods:
chooseURL()
- URL -
returns the URL with the custom protocol
getMenuName()
-
String - returns the name of the entry that
will be added in the submenu of the editor