[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Showing Data from XML file into a Table Using a TableViewer

Adithya,

Comments below.


adithya wrote:
Ed Merks wrote:

Adithya,

Maybe you should be using EMF instead. :-P

http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.emf.doc/tutorials/xlibmod/xlibmod.html


The problem is most likely that you shouldn't be fiddling with the build path in the first place when developing plugins. Whatever build-time problems you solve in this way will come back at runtime. You should be using the Dependencies tab of the MANIFEST.MF editor and you'll have to package any jars as bundles/plugins...


adithya wrote:
Hello,
I am trying to show data from a xml file into a table located in an Eclipse "view"(user defined) of a user defined
"perspective".


I am able to show dummy data and also edit it.

But when i try to show it using JAXB 2.1.9 it gives a JAXBException while loading the perspective i.e. while loading
the corresponding view.
The JAXBException is - "java.lang.NoClassDefFoundError : javax/xml/bind/JAXBException".


I have added all the necessary JAR'S of JAXB 2.1.9 in the Java Build Path..

Actually,it is working in one computer but when i switch to another computer,it isn't able to.
I imagine these things should be part of the JRE...

Please let me know the problem.

Adithya.

Thanks.
I would like to know as to how do i proceed with EMF?
The generated .java files which is given in the tutorial are to be used for showing the data into the table??
Yes. Didn't you notice that the generated editor even has a table view?
and in the tutorial it says some plug-ins are mandatory..i don't have a few..
What do you have?
How do i get those?
I'm not sure which "those" you're referring to. If you install the EMF and XSD SDKs, that should be enough...

What do you mean by packaging in the plug-in bundles??
If you're building an Eclipse application then you are building plugins also often referred to as bundles.
I added those two plug-ins generated by following the given tutorial..
My comment was a general one about your JAXB dependencies.

Please guide.

Adithya.