Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to find necessary features/plugins when composing an application?
How to find necessary features/plugins when composing an application? [message #518498] Thu, 04 March 2010 05:07 Go to next message
Michael Moser is currently offline Michael Moser
Messages: 914
Registered: July 2009
Senior Member
I am trying to develop an RCP application - I guess in eclipse speak that's
actually a "product"(?) - which besides a specific view that I already
wrote, and which will be "the beef" of my application, should also includes
a couple of standard eclipse views, like the Navigator view, the Project
Explorer view, the Console, plus preferably the entire Windows-menu
including the options to choose and manage perspectives and views. The File
menu with some "standard" functionality (like New..., Open..., Close, Exit
and Switch workspace, ) and the Help menu should also be part of my
application. On the other hand it should *not* include any IDE features
(like Package explorer or Hierarchy view, Java perspective, etc. etc.).

I have now fiddled for a quite a while but I am having a really hard time
identifying all the plugins that I need to include to make the listed
features (and only those) be part of my application, such that when I start
up the application in a runtime workspace it provides all the features I
listed above. Again and again, while some feature *do* show up (like the
Navigator view) others remain missing or fail at runtime due to missing
dependencies (and other features are there, that I don't want and that I
have no clue, why they are showing up...).

What I did so far was to simply include certain plugins into the plugin's
Dependencies list (under Required Plug-ins) but IMHO there must be a better,
more focused way - and not just trial and error - to configure an
application such that specific features are fully included (and properly
work at runtime!) and others are not.

Could some kind soul give me a pointer or hint how to do that? Is there some
tool or view or wizard (or whatever) to configure an application and
identify and pick features? Or how does one configure application that
should compose a subset of existing eclipse stuff with additional
self-written elements?

Re: How to find necessary features/plugins when composing an application? [message #518992 is a reply to message #518498] Fri, 05 March 2010 11:08 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

I've always found it necessary to write my own features to contain
eclipse plugins when building an RCP app. The reason is the eclipse SDK
features are *not* fine grained. org.eclipse.rcp gives you a huge chunk
of the workbench, core runtime, equinox/OSGi, and help.
org.eclipse.platform gives you the rest of the platform + resources +
ide and ide.application. But that means you can either pick up just RCP
or RCP+Platform.

That leaves plugins and plugin dependencies. Activating a view and
using ALT+SHIFT+F1 will give you useful information: the view ID, the
contributing plugin, and the implementing class. Then it becomes (as
you discovered) an exercise in adding that plugin and using "Add
Required Dependencies" to collect all of the plugins that you need.
"Include Optional Dependencies" can help if the required dependencies
aren't enough to launch, but that will put you up in hit or miss mode.


Paul Webster .platform.doc.isv/guide/workbench.htm

Previous Topic:How to use RCP Problems view
Next Topic:How to calculate which side of the workbench a ContributionItem has been placed.
Goto Forum:

Current Time: Tue Jul 29 17:11:36 EDT 2014

Powered by FUDForum. Page generated in 0.01599 seconds