External Table Data Editors

org.eclipse.wst.rdb.data.ui.externalTableDataEditor

This extension point is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

The externalTableDataEditor allows to contribute an IExternalTableDataEditor object to be used with a particular vendor, version and datatype and length. The contributed object is then used to edit the currently selected cell of the table editor, allowing to implement support for database-specific data types.

<!ELEMENT extension (externalEditor)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT externalEditor EMPTY>

<!ATTLIST externalEditor

vendor   CDATA #IMPLIED

version  CDATA #IMPLIED

dataType CDATA #IMPLIED

length   CDATA #IMPLIED

class    CDATA #REQUIRED>

This element specifies an IExternalTableDataEditor to be used with a combination of vendor/version/data type/length. If several contributions match a given column, the best fitting contribution is used (i.e. the one that specifies the highest number of criteria).



The default implementation in this plugin calls DefaultExternalTableDataWizard (implementing IExternalTableDataEditor) for any column of a datatype (that supports a length attribute) whose length >= 30
   

<extension id=

"org.eclipse.wst.rdb.data.ui.defaultExternalTableDataEditor"

name=

"Default External Table Data Editor"

point=

"org.eclipse.wst.rdb.data.ui.externalTableDataEditor"

>

<externalEditor length=

"30"

class=

"org.eclipse.wst.rdb.data.internal.ui.editor.DefaultExternalTableDataWizard"

/>

</extension>

This example will invoke the CloudscapeV10ExternalTableDataEditor for columns of the datatype TIME on a Cloudscape database version 10.0.
   

<extension id=

"org.eclipse.wst.rdb.data.ui.defaultExternalTableDataEditor"

name=

"Default External Table Data Editor"

point=

"org.eclipse.wst.rdb.data.ui.externalTableDataEditor"

>

<externalEditor vendor=

"IBM Cloudscape"

version=

"10.0"

datatype=

"TIME"

class=

"org.eclipse.wst.rdb.data.internal.ui.editor.CloudscapeV10ExternalTableDataEditor"

/>

</extension>

This example invokes the CloudscapeExternalTableDataEditor for columns of the datatype TIME on any Cloudscape database. If the example above is also defined, this one would be called for any Cloudscape version other than 10.0 as for that one the example above would be called.
   

<extension id=

"org.eclipse.wst.rdb.data.ui.defaultExternalTableDataEditor"

name=

"Default External Table Data Editor"

point=

"org.eclipse.wst.rdb.data.ui.externalTableDataEditor"

>

<externalEditor vendor=

"IBM Cloudscape"

datatype=

"TIME"

class=

"org.eclipse.wst.rdb.data.internal.ui.editor.CloudscapeExternalTableDataEditor"

/>

</extension>