Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How to add validation to XMLMultiPageEditorPart? (I'm using XMLMultiPageEditorPart to edit xml files and want to add "validate" option..)
How to add validation to XMLMultiPageEditorPart? [message #556099] Mon, 30 August 2010 15:03 Go to next message
Maciej  is currently offline Maciej
Messages: 4
Registered: August 2010
Junior Member
Hello,

I'm using XMLMultiPageEditorPart as an editor for XML files. Now I'd like to add validation to the view (i.e. via context menu item), how can I achieve that? I was trying by adding the following plugins, but I do not not what to do next:

* org.eclipse.wst.xml.core
* org.eclipse.wst.xml.ui
* org.eclipse.wst.validation
* org.eclipse.wst.validation.ui


Any help would be appreciated! Smile
Re: How to add validation to XMLMultiPageEditorPart? [message #556105 is a reply to message #556099] Mon, 30 August 2010 15:28 Go to previous message
Sarika Sinha is currently offline Sarika Sinha
Messages: 45
Registered: February 2010
Location: Bangalore, India
Member
Hi,
If you want to add the extra validation you wll have to implement the extension point "org.eclipse.wst.validation.validatorV2" and add your own validator class which can use the current functionality of xml Validator. Check out the xml.core plugin to see the current implementation of the extension point.


Sarika Sinha
JDT Programmer
Previous Topic:Auto updating links & linked snippets
Next Topic:Setting up JDST Dev Environment
Goto Forum:
  


Current Time: Fri Aug 22 04:05:24 EDT 2014

Powered by FUDForum. Page generated in 0.02561 seconds