# Driver Property Editor

###### Identifier:

org.eclipse.datatools.connectivity.ui.driverPropertyEditor

###### Since:

[Enter the first release in which this extension point appears.]

###### Description:

[Enter description of this extension point.]

###### Configuration Markup:

<!ELEMENT extension (propertyEditor+)>

<!ATTLIST extension

point CDATA #REQUIRED

id CDATA #IMPLIED

name CDATA #IMPLIED

>

<!ELEMENT propertyEditor EMPTY>

<!ATTLIST propertyEditor

id CDATA #REQUIRED

driverTemplateID CDATA #REQUIRED

driverPropertyID CDATA #REQUIRED

customPropertyDescriptor CDATA #IMPLIED

>

- id -
- driverTemplateID - Required. Provides the ID of the driver template the property descriptor editor should be used for.
- driverPropertyID - Required. Provides the ID of the driver property the editor should be used for.
- customPropertyDescriptor - Required. Provides a custom property descriptor that extends the class org.eclipse.ui.views.properties.PropertyDescriptor. An example of this is the class org.eclipse.datatools.connectivity.ui.PasswordTextPropertyDescriptor, which provides a property editor that masks the characters for a password property. Anything you can implement as a property descriptor for the Properties Viewer, you can use here. Or if you want to make the property values read-only, you can use org.eclipse.ui.views.properties.PropertyDescriptor directly. Note that your property descriptor must implement a zero-argument constructor in order to be created correctly. This zero-argument constructor should provide the id and display name of the property you are editing. For example: private static String DRIVER_CLASS_PROP_ID = "org.eclipse.datatools.connectivity.db.driverClass"; //$NON-NLS-1$ public DriverClassBrowsePropertyDescriptor() { super(DRIVER_CLASS_PROP_ID, ConnectivityUIPlugin.getDefault().getResourceString("DriverClassBrowsePropertyDescriptor.property.label")); //$NON-NLS-1$ } Also note that there is a new interface that your Property Descriptor can extend called org.eclipse.datatools.connectivity.drivers.IDriverInstancePropertyDescriptor. This interface allows you to pass the Driver Instance to your descriptor when it is instantiated in the Edit Driver Definition dialog.

###### Examples:

[Enter extension point usage example here.]

###### API Information:

[Enter API information here.]

###### Supplied Implementation:

[Enter information about supplied implementation of this extension point.]