DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Eclipse Plugin Development: Changing Behavior Of "Open With XML Editor"
Notices
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Apr 2009
Default Eclipse Plugin Development: XML Validation using XSDs without setting attribute - 04-20-2009, 03:54 PM

Hey guys,
I am stuck with a complicated problem. I want to achieve the following: When I open a normal XML File (using the Eclipse Menu Point "Open With" > "XML Editor" or just performing a double-click on the corresponding XML-File), I want to add something to the DocumentBuilderFactory object which is responsible for the XML Validation before the user sees it in the workbench window.
What I want to achieve is actually a XML Validation using XSD Files without having to define a XSD File as a parameter in the root node but only by setting it in the object which is responsible for this validation (so only programmatically, not hard-coded).
I should not create a new XML Editor by extending the class XMLMultiPageEditorPart but I have to stick to the given XML Editor from Eclipse.

Validating with XML Schema explains how to set attributes in an instance of the DocumentBuilderFactory.

I don't know how to find the code responsible for the opening of a XML File with the normal editor (I tried to find it with the Plugin Spy but had no success), and I also don't know yet how to add the new functionality in the code.

Can someone help me? Thank you.
Reply With Quote
Reply

Tags
documentbuilderfactory, plugin, validation, xml, xmlmultipageeditorpart

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RCP: menu extension an "open perspective" submenu Jorsch Eclipse 1 02-10-2009 04:18 AM
"Open File" action kabil Eclipse 1 10-21-2008 11:58 AM
Eclipse CDT "An internal error occurred during: "Launching"" aluminumpork Eclipse 1 10-08-2008 04:48 AM
Eclipse Debug error - "Process Model Delta" bboyle18 Eclipse 2 09-02-2008 07:20 PM
eclipse rcp: removing "workbench user guide" in Help kerspe Eclipse 0 09-01-2008 03:01 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com