Oxygen XML Editor, Version ${standalone-version-number}

ro.sync.sample.plugin.customprotocol
Class CustomProtocolChooserExtension

java.lang.Object
  extended by ro.sync.sample.plugin.customprotocol.CustomProtocolChooserExtension
All Implemented Interfaces:
PluginExtension, URLChooserPluginExtension, URLChooserToolbarExtension

public class CustomProtocolChooserExtension
extends Object
implements URLChooserPluginExtension, URLChooserToolbarExtension

Plugin extension - custom protocol chooser extension


Constructor Summary
CustomProtocolChooserExtension()
           
 
Method Summary
 URL[] chooseURLs()
          Shows the dialog and let the user choose one URL with the custom protocol.
 String getMenuName()
          Get the plugin name that will be displayed on the menu
 Icon getToolbarIcon()
          Get the toolbar icon.
 String getToolbarTooltip()
          Get the tooltip to be placed on the toolbar button.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomProtocolChooserExtension

public CustomProtocolChooserExtension()
Method Detail

chooseURLs

public URL[] chooseURLs()
Shows the dialog and let the user choose one URL with the custom protocol.

Specified by:
chooseURLs in interface URLChooserPluginExtension
Returns:
The chosen array of URLs or null if the user rejects the selection.

getMenuName

public String getMenuName()
Description copied from interface: URLChooserPluginExtension
Get the plugin name that will be displayed on the menu

Specified by:
getMenuName in interface URLChooserPluginExtension
Returns:
A menu name.

getToolbarIcon

public Icon getToolbarIcon()
Description copied from interface: URLChooserToolbarExtension
Get the toolbar icon. The action will be placed in the "File" toolbar. Return null if the action should not be included in the toolbar.

Specified by:
getToolbarIcon in interface URLChooserToolbarExtension
Returns:
The toolbar icon or null.
See Also:
URLChooserToolbarExtension.getToolbarIcon()

getToolbarTooltip

public String getToolbarTooltip()
Description copied from interface: URLChooserToolbarExtension
Get the tooltip to be placed on the toolbar button. If the tooltip is null but there is an icon provided, the URLChooserPluginExtension.getMenuName() will be used instead.

Specified by:
getToolbarTooltip in interface URLChooserToolbarExtension
Returns:
The toolbar tooltip or null.
See Also:
URLChooserToolbarExtension.getToolbarTooltip()

Oxygen XML Editor, Version ${standalone-version-number}

© Copyright Syncro Soft SRL 2002 - 2010.