Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Validating wst.sse.ui.StructuredTextEditor on load?
Validating wst.sse.ui.StructuredTextEditor on load? [message #555527] Fri, 27 August 2010 03:04 Go to next message
Robert Brodt is currently offline Robert Brodt
Messages: 595
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

Hi all,

We're using the wst structured text editor in the BPEL Designer project to initially load the BPEL resource. The SSE is used as the "source" page in a multipage editor which is cool because it provide fault tolerant parsing.

The problem is that it's too fault tolerant. Even when the SSE is loaded with crappy XML it will do its darndest to generate a valid DOM.

Is there any way to cause the SSE to log parse errors and then fetch those errors after it has finished loading? Do I need do XML validation separately (OMG, duplicate parsing???)

Thanks!
Bob
Re: Validating wst.sse.ui.StructuredTextEditor on load? [message #555718 is a reply to message #555527] Fri, 27 August 2010 19:28 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2267
Registered: July 2009
Senior Member
Is the standard "batch" XML Validator being run on your bpel files? Do you have more validators registered specifically for your content type?

---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: Validating wst.sse.ui.StructuredTextEditor on load? [message #556009 is a reply to message #555718] Mon, 30 August 2010 14:25 Go to previous messageGo to next message
Robert Brodt is currently offline Robert Brodt
Messages: 595
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

Yes, the plugin has registered a BPEL validator. But this is only invoked during a build and is pretty expensive to run. What is the "standard batch xml validator"? Can this be attached to the SSE during loading?
Re: Validating wst.sse.ui.StructuredTextEditor on load? [message #556283 is a reply to message #556009] Tue, 31 August 2010 15:23 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2267
Registered: July 2009
Senior Member
In org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProc essor#getValidatorStrategy() you'll find that while we automatically run validators registered using the org.eclipse.wst.sse.ui.extensions.sourcevalidation extension point. If the BPEL content type extends the XML content type, it should already be running XML validation.

---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: Validating wst.sse.ui.StructuredTextEditor on load? [message #556740 is a reply to message #556283] Thu, 02 September 2010 13:37 Go to previous message
Robert Brodt is currently offline Robert Brodt
Messages: 595
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

Thanks Nitin, that helped Smile
Previous Topic:Testing WTP 3.2.2?
Next Topic:migrating from MyEclipse
Goto Forum:
  


Current Time: Wed Sep 17 23:53:04 GMT 2014

Powered by FUDForum. Page generated in 0.03055 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software