When is the RCP complete and the rest is done using plug-ins [message #509627] |
Sat, 23 January 2010 18:54 |
John Steele Messages: 50 Registered: January 2010 |
Member |
|
|
Hello,
My RCP application is getting very lengthy, and I'm not sure when it's time to stop working on the actual RCP application, and do the rest with plug-ins.
Is there a general layout that you usually use?
Say for example when you build an RCP application do you create one perspective, some menu/toolbar items, and some views, and then do the rest with plug-ins?
I'm finding my RCP app source folder to be very thick with different content/label providers, views, etc.
Thank you,
John
|
|
|
Re: When is the RCP complete and the rest is done using plug-ins [message #509672 is a reply to message #509627] |
Sun, 24 January 2010 14:56 |
Wim Jongman Messages: 423 Registered: July 2009 |
Senior Member |
|
|
Hi John
You should stop working on your main RCP plugin as soon as possible. Then
start moving other parts of you application into separate modular plugins
(also known as bundles). A new perspective, for instance, sounds like a good
candidate to put in its own plugin. Please google a little to get some ideas.
Best regards,
Wim Jongman
> Hello,
>
> My RCP application is getting very lengthy, and I'm not sure when it's time
to stop working on the actual RCP application, and do the rest with plug-ins.
>
> Is there a general layout that you usually use?
>
> Say for example when you build an RCP application do you create one
perspective, some menu/toolbar items, and some views, and then do the rest
with plug-ins?
>
> I'm finding my RCP app source folder to be very thick with different
content/label providers, views, etc.
>
> Thank you,
>
> John
|
|
|
|
Re: When is the RCP complete and the rest is done using plug-ins [message #509797 is a reply to message #509627] |
Mon, 25 January 2010 12:41 |
Christian Messages: 72 Registered: July 2009 |
Member |
|
|
Am 23.01.2010 19:54, schrieb Mr. Steele:
> Hello,
> My RCP application is getting very lengthy, and I'm not sure when it's
> time to stop working on the actual RCP application, and do the rest with
> plug-ins.
> Is there a general layout that you usually use?
>
> Say for example when you build an RCP application do you create one
> perspective, some menu/toolbar items, and some views, and then do the
> rest with plug-ins?
>
> I'm finding my RCP app source folder to be very thick with different
> content/label providers, views, etc.
> Thank you,
> John
I would ask myself what the gain would be in modularization.
If your sourcefolder gets to thick, the first approach would be to
seperate it with normal java packages.
I would recommend separating UI and model/core into a 2 different
plugins at least.
Though the UI itself might only improve on further separation depending
on size. Question is what is your gain. More plugins might get you fewer
classes to watch over and a smaller plugin.xml which can thanks to
commands become very crowded. Though it also gives you some management
overhead. Like tracking before each release where exactly you changed
stuff so you change the version numbers in the plugins.
If features are optional for some installations in your application
separating them in some plugin naturally is the simplest way.
For the rest the answer seems to be: what ever is the least work for you
and yiels most beautiful code.
christian
|
|
|
Powered by
FUDForum. Page generated in 0.03765 seconds