Adding a property tab to an Eclipse property dialog
A property tab extension point is used to add a property tab to a property dialog and an associated property page.
The following code extract is taken from the file plugin.xml, from the
simple plugin, and shows a basic implementation of the property tab extension point:
<extension
id="com.ibm.mq.explorer.samples.simplePropertyTab"
name="Simple Property Tab"
point="com.ibm.mq.explorer.ui.addpropertytab">
<propertyTab
class="com.ibm.mq.explorer.sample.simple.SimplePropertyTabFactory"
objectId="com.ibm.mq.explorer.queuemanager"
pluginId="com.ibm.mq.explorer.sample.simple"
name="com.ibm.mq.explorer.sample.simple"
propertyTabId="com.ibm.mq.explorer.sample.simple.propertyTab"
propertyTabName="Simple Sample Property Tab"/>
</extension>
As well as declaring the property tab extension point in plugin.xml, the
following classes are needed:
- A class that contains a method that creates and returns a property page to be displayed when a
user clicks the property tab. This class must implement
com.ibm.mq.explorer.ui.extensions.IPropertyTabFactory. For the methods that this class must contain
refer to the IBM® MQ Explorer
Javadoc documentation. For information on how to
access the IBM MQ Explorer
Javadoc documentation, see API Reference.
A working example of this class, called SimplePropertyTabFactory.java, is available in the simple plugin.
- A class used for creating the property page must extend com.ibm.mq.ui.extensions.PropertyPage.
For the methods that this class must contain refer to the IBM MQ Explorer
Javadoc documentation.
A working example of this class, called SimplePropertyPage.java, is available in the simple plugin.