|
IBM DB2 UDB Plugin Interface for Extending the Control Center |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The CCExtension interface allows users to extend the Control Center user interface by adding new toolbar buttons, new menu items for objects in the tree and new objects to the Control Center tree.
To do so, create a java file which imports the com.ibm.db2.tools.cc.navigator package and implements this interface. The new file provides the implementation of the getObjects() and getToolbarActions() methods.
The getObjects() method returns an array of CCObjects which defines the existing Control Center objects which the user would like to add new menu actions to, add new plugin objects under or remove existing menu actions from (i.e. change or configure menu actions).
The getToolbarActions() method returns an array of CCToolbarActions which is added to the Control Center main toolbar.
A single CCExtension subclass file or multiple CCExtension subclass files can be used to define the Control Center extensions. In order for the Control Center to make use of these extensions, use the following setup procedures:
On Windows operating system, put db2plug.zip in the DRIVE:\sqllib\tools directory where DRIVE: represents the drive on which DB2 is installed.
On UNIX platforms, put db2plug.zip in the /u/db2inst1/sqllib/tools directory where /u/db2inst1 represents the directory on which DB2 is installed.
Note: The db2cc command sets the classpath to point to db2plug.zip in the tools directory.
Since multiple plugins can be contained in the db2plug.zip file, plugin developers should follow these guidelines when creating a plugin for the Control Center:
zip -r0 db2plug.zip com\companyname\myplugin\*.classwhere your plugin package name is com.companyname.myplugin
Plugins which use new release features are not usable with earlier versions of DB2.
Method Summary | |
---|---|
CCObject[] |
getObjects()
Get an array of CCObject subclass objects which define a list of objects to be overrided in the Control Center |
CCToolbarAction[] |
getToolbarActions()
Get an array of CCToolbarAction subclass objects which represent a list of buttons to be added to the Control Center main toolbar. |
Method Detail |
public CCObject[] getObjects()
public CCToolbarAction[] getToolbarActions()
|
IBM DB2 UDB Plugin Interface for Extending the Control Center |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
(C)Copyright IBM Corp. 2002, 2004. All rights reserved.
Links on this page are made available for your convenience and may take you to non-IBM sites. IBM does not warrant any sample code provided on these sites.