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(String
protocol)
-
URLStreamHandler- 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:
chooseURLs()
-
URL[] - returns the URLs the
user decided to open with the custom protocol. You can
invoke your own URL chooser dialog here and then return the
chosen URLs having your own custom protocol.
getMenuName()
-
String - returns the name of the
entry that will be added in the submenu of the editor
With the help of the URLChooserToolbarExtension
interface, it is possible to provide a toolbar entry which will be used to
launch the custom URLs chooser from in the
URLChooserPluginExtension
. This interface
provides two methods:
getToolbarIcon()
-
Icon - returns the
javax.swing.Icon
image which
will be used on the toolbar.
getToolbarTooltip()
-
String - returns the tooltip
which will be used on the toolbar button.