|
|
Re: sharing resources [message #69829 is a reply to message #69662] |
Tue, 10 June 2003 16:05   |
Eclipse User |
|
|
|
Rafael,
Actually you really guessed the right meaning of "resources" :)
I'm developing a graphical tool for modeling software agents, but I have
several editors and I need to keep some consistency beetwen the data in the
editors, the question is: where should I store the information? Does Eclipse
provides me some help to keep it consistent?
-thanks,
Luiz Fernando
<chaves@no-spam.inf.ufsc.br> escreveu na mensagem
news:bc57bo$290$1@rogue.oti.com...
> Luiz Fernando,
>
> By "resources" do you mean files, folders and projects as defined by the
> Resources plug-in API, or just objects in general?
>
> I believe you are talking about the latter... well, in this case, you will
> share objects created by your plug-in through its API (client plug-ins
> will request your plug-in's objects), by passing objects to other
> plug-ins through their APIs (your plug-in will be the client), or through
> the extension point mechanism.
>
> Not sure this helps, or even if I guessed the right meaning of
> "resources".
>
> Rafael
|
|
|
Re: sharing resources [message #70227 is a reply to message #69829] |
Tue, 10 June 2003 22:50  |
Eclipse User |
|
|
|
Originally posted by: chaves.inf.nospam.ufsc.br
Luiz Fernando,
I think for your problem a careful design will be more helpful than any
tool. The strategy I would recommend is to clearly separate UI from model
objects and to make the UI objects (editors/views/actions) share the same
underlying model objects (whatever your domain is). The model objects
store/manage the information, the UI objects allow the user to see and
manipulate it. The UI related frameworks in Eclipse are designed to
support this separation.
Also, depending on how big your system is, I would suggest breaking it
into two or more plug-ins (e.g. one for model objects, another for UI).
And if the model objects can be reused outside Eclipse, you should
consider making their plug-in as less dependent on Eclipse as you can.
Good luck,
Rafael
Luiz Fernando Rodrigues wrote:
> Rafael,
> Actually you really guessed the right meaning of "resources" :)
> I'm developing a graphical tool for modeling software agents, but I have
> several editors and I need to keep some consistency beetwen the data in the
> editors, the question is: where should I store the information? Does Eclipse
> provides me some help to keep it consistent?
> -thanks,
> Luiz Fernando
> <chaves@no-spam.inf.ufsc.br> escreveu na mensagem
> news:bc57bo$290$1@rogue.oti.com...
> > Luiz Fernando,
> >
> > By "resources" do you mean files, folders and projects as defined by the
> > Resources plug-in API, or just objects in general?
> >
> > I believe you are talking about the latter... well, in this case, you will
> > share objects created by your plug-in through its API (client plug-ins
> > will request your plug-in's objects), by passing objects to other
> > plug-ins through their APIs (your plug-in will be the client), or through
> > the extension point mechanism.
> >
> > Not sure this helps, or even if I guessed the right meaning of
> > "resources".
> >
> > Rafael
|
|
|
Powered by
FUDForum. Page generated in 0.04676 seconds