Shortcut Plug-ins

 < Day Day Up > 



Use the ShortcutInterface and PluginInterface to add a Java plug-in to the Tools menu, to the Shortcut Bar on the SAS ETL Studio desktop, or to both. The methods for each of these interfaces are described as follows:

PluginInterface

   public void initPlugin()     performs any necessary initialization for the plug-in   public void dispose()     performs any necessary cleanup for disposing of the plug-in   public String getDescription()     returns a string that contains a description of the plug-in   public Icon getIcon()     returns a 16x16 icon for the plug-in that will be displayed on the Tools menu   public String getName()     returns a string that represents the name of the plug-in. 

ShortcutInterface

   public void onSelected()     contains the actions to take when the user opens the plug-in   public Icon getLargeIcon()     returns a 32x32 icon for the plug-in that will be displayed on the shortcut bar   public JMenuItem getMenuItem()     returns a menu item (using JMenuItem) that will be added to the Tools menu. If     you want, you can define a mnemonic, an accelerator key, or both by using this     method with JMenuItem.setMnemonic() and JMenuItem.setAccelerator(),     respectively.   public int getLocations()     returns one of three values:       SHOW_ON_SHORTCUT         displays the plug-in only on the shortcut bar       SHOW_ON_MENU         displays the plug-in only on the Tools menu       SHOW_ON_ALL         displays the plug-in on both the shortcut bar and the Tools menu. 



 < Day Day Up > 



SAS Institute - SAS 9.1.3 ETL Studio. User's Guide
SAS 9.1.3 ETL Studio: Users Guide
ISBN: 1590476352
EAN: 2147483647
Year: 2004
Pages: 127
Authors: SAS Institute

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net