|
|
Re: How should I deal with XML files in my plugin(I wanna use the method integrated with Eclipse pla [message #306905 is a reply to message #306881] |
Wed, 09 August 2006 04:11   |
Eclipse User |
|
|
|
Originally posted by: ahmedlazreg.free.fr
Hi Vic,
I hope you have found the answer in Paul's post. But (personnally) I think
that it's a stupid idea to try to do every thing with Eclipse API or the
Eclipse way. I think that Eclipse is a very high quality platform, but the
integration to this platform does not imply or force you to be limited to
its api. When we deal for example with files in the workspace, it's a good
idea (or may be the BEST one) to use Eclipse API in order to keep every
thing synchronized. When we deal with the presentation layer of an
application, the best is to use Eclipse API. But when we deal with
productive part of an application (the business layer, ... the processing
part of an application) may be the best is to use directly JAVA api, to
avoid to introduce any level of indirection. XML processing is very well
done with JAVA api, and even if Eclipse API will change in the future, I do
not think that this will have any effect on the code that will manage XML or
process it. So you can use SAX or DOM without having to deal with Eclipse
api at all.
This is only an opinion, since I do not know your needs I cant say more.
Best regards.
A.Lazreg
octal@pocketmt.com
http://www.pocketmt.com the mcuStudio Home Page ;) you can see a dirty demo
at http://www.pocketmt.com/demo/idm2.htm
"Paul Webster" <pwebster@ca.ibm.com> a
|
|
|
Re: How should I deal with XML files in my plugin(I wanna use the method integrated with Eclipse pla [message #306921 is a reply to message #306905] |
Wed, 09 August 2006 09:19  |
Eclipse User |
|
|
|
Ahmed LAZREG wrote:
> So you can use SAX or DOM without having to deal with Eclipse
> api at all.
> This is only an opinion, since I do not know your needs I cant say more.
I agree ...
If you are reading/writing plugin settings, IMemento or DialogSettings
are handy (and consistent with the way a lot of platform plugins
save/restore settings). But they are just convenience objects and not
mandatory, and property files are good for plugin settings as well.
For reading XML I would reach for the standard SAX API (or DOM,
depending on which serves your application needs better).
Later,
PW
|
|
|
Powered by
FUDForum. Page generated in 0.04300 seconds