It's best to ask about this on the WTP newgroup, which I've added to the
"to" list of the reply, so no need to repost. You can use PDE to view
the dependencies of a plugin to help answer your own question.
Martin Hargreaves wrote:
> Dear Eclipse Community,
> I've recently been tasked with producing an XML validation plugin for
> an RCP project. Fortunately a validation plugin already seems to exist
> in the Eclipse IDE! I believe that the plugins
> org.eclipse.wst.validation and org.eclipse.wst.validation.ui provide
> this functionality.
> Please can anyone provide me with some guidance on how I may start to
> wrap these plugins into a bespoke plugin for our RPC?
> Also, is it possible to do this or do these plugins require
> functionality that is only available in the RCP (i.e. Workbench Page,
> Perspectives etc)? I've found very little information on how to use
> these plugin extension points.
> I'd be very grateful for any help you could provide.
The plug-ins you referenced are the WTP validation framework. It should be
possible to use this framework outside of WTP. The validation framework UI
makes use of the Eclipse workbench and specifically markers to display
messages produced by validators.
> The plug-ins you referenced are the WTP validation framework. It should be
> possible to use this framework outside of WTP. The validation framework UI
> makes use of the Eclipse workbench and specifically markers to display
> messages produced by validators.
Thank you for your response to my query (and thank you to Ed for
Thanks for showing me the source code to the XML Validator. I'll try and
see how I can incorporate this in my application.
I take it that because the validation framework UI makes use of the
Eclipse work bench that this module is not RCP friendly and so I am unable
to reuse the UI functionality at the plug-in level? From your last
paragraph, do you think that the org.eclipse.wst.validation plug-in is
I don't know the specific requirements for the validation framework but I
am confident that it has IDE dependencies.
For generic XML validation in an RCP app you may be interested in rolling
your own (if you can't meet the existing XML validator's dependencies).
The WTP XML validator is based off of Apache Xerces . I wrote an
article a few years ago that discusses creating Eclipse validators. The
article is a little dated and makes use of functionality in the IDE but it
may be helpful .