Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Regarding organizing classes and projects for a RCP Application
Regarding organizing classes and projects for a RCP Application [message #448979] Mon, 08 May 2006 09:41 Go to next message
Eclipse UserFriend
Greetings.

This question might have an obvious answer but so far I am a little
confused. I have several plugins for an RCP Application. Now, there is
a lot of code that is common to all these plugins, and which I don't
want to be part of the RCP application as I might need to use it in
later projects that do not use Eclipse (Basically, singleton classes
with no GUI interface that provide diverse functionality and their
helper classes).

I want to create a separate simple java project to store all these
classes. However, I get stuck when trying to import them back into the
RCP project. What is the right way to do so? Everytime I try to run
the RCP app, the classes on the simple java project are not available,
even when I put them as requirements for compilation on the properties /
projects in classpath on the plugin project.

I guess the right way would be that a "core" plugin imports all of these
separate classes, right? but how do I set up that?

What am I doing wrong?
Re: Regarding organizing classes and projects for a RCP Application [message #448981 is a reply to message #448979] Mon, 08 May 2006 09:57 Go to previous messageGo to next message
Eclipse UserFriend
It's because plugins only recognize plugins. For it to participate in
RCP, it must be in a plugin somewhere.

What I would do:

1) create your java project, and place all of your utility classes in it.

2) Use the project popup menu>PDE Tools to turn your java project into a
plugin project. It adds the build.properties and MANIFEST.MF.

After step 2, any java project can use your utilities jar as a plain old
jar. Any plugin will see the MANIFEST.MF, and treat your utilities jar
as a plugin.

Later,
PW
Re: Regarding organizing classes and projects for a RCP Application [message #449071 is a reply to message #448981] Wed, 10 May 2006 05:54 Go to previous message
Eclipse UserFriend
You don't even need to do that -- any plugin project is automatically a Java project, and can be used as such. So just create it as a plugin project to start with :-)

Alex.
Previous Topic:View instances with fixed size
Next Topic:whats the best way to update a library plugin?
Goto Forum:
  


Current Time: Sun Aug 31 02:12:16 EDT 2025

Powered by FUDForum. Page generated in 0.03811 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top