How to associate the contents of an XML file into an org.eclipse.swt.widgets.TabItem in Java

Currently I’m displaying the contents of an XML file in an Editor (in 2 forms ) containing 2 TabItems say UI and XML Tabs .

One TabItem (UI Tab) is responsible to display the structure of the XML file in a Tree View structure (rendering the XML contents in the form of Tree view ) and the other one (XML Tab) should be able to display the xml file contents itself.

But when trying to implement the latter (XML Tab), I’m facing some problems.

The problem is i couldn’t able to associate an XML file to an org.eclipse.swt.widgets.TabItem.

Any idea of achieving this will be highly appreciated !

Source: eclipse

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.