Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » One source two projects(RCP and Simple Java Project)
One source two projects [message #753443] Thu, 27 October 2011 05:38 Go to next message
kosta Missing name is currently offline kosta Missing name
Messages: 14
Registered: August 2011
Junior Member
Hello Eclipse Community,

I have very strange question.
Is it possible to use the same source in a simple java project and in a RCP project.

The Idea ist to develop, edit the java files in one place but to use them into two different projects without to make some conversion like jars or equal.

We have one project which is writen as simple java project and we want to use the classes of it in a RCP plugin project. Is that possible without to convert the simple into RCP? Because the simple and the RCP will be both developed further.

Regards,
Kosta
Re: One source two projects [message #753479 is a reply to message #753443] Thu, 27 October 2011 08:41 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Why not convert the simple jar into an bundle/plugin? From the java jar point of view, there's nothing special about being an OSGi bundle except you have some OSGi headers in your MANIFEST.MF which specify your ID, version, and what java packages you export. The OSGi headers have no effect when running as a normal jar on the classpath, and will allow that project to work correctly in an RCP app.

PW


Previous Topic:How to add custom menu item to the windows popup menu in a Text?
Next Topic:Opening a new file type in especial editor
Goto Forum:
  


Current Time: Thu Jul 31 03:37:48 EDT 2014

Powered by FUDForum. Page generated in 0.01490 seconds