Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Plugin for shared classes
Plugin for shared classes [message #604300] Wed, 20 January 2010 17:53 Go to next message
Joey Mink is currently offline Joey MinkFriend
Messages: 87
Registered: July 2009
Location: Centreville, VA, USA
Member

Hi,

I've been developing an IDE for a proprietary language for the past few months. It consists of an editor, a common navigator, and lots of other features.

However, I've determined that it's a little difficult now to proceed because the plugin.xml file is quite large and I'd like to split the common navigator view I developed into a separate plugin.

This presents a new challenge to me as there are some packages and classes that are shared by the common navigator view and the editor. How might I address this? Should I make a 3rd plugin for common code that is accessed by both the main plugin and the cnf view plugin?

Any thoughts here are greatly appreciated - thank you!
Joey
Re: Plugin for shared classes [message #604339 is a reply to message #604300] Sat, 23 January 2010 15:09 Go to previous messageGo to next message
Alan Chaney is currently offline Alan ChaneyFriend
Messages: 20
Registered: January 2010
Junior Member
I'm not claiming to be much of an expert but I've a number of plug-ins which have dependencies on one another. If you have plugin A which may have a package a.b.c and plug-in B needs it, then you can export it from plugin A with the Export-Package statement in MANIFEST.MF
e.g

Export-Package: a.b.c

You then add plug-in A as dependency of plug-in B using the 'Required Plug-Ins' page of the Plug In Manifest Editor.

In your case you must decide whether the editor is the 'base' or the CNF is the 'base'. I suspect you'll find that the plugin with the CNF will probably depend upon the editor. If you find that you have circular dependencies then its probably best to create a 3rd project with packages to resolve this case and make that a 'library' plug-in.

I found the following link on Google:

http://owl-eclipse.projects.semwebcentral.org/CreateLibraryP lugin.html

HTH
Re: Plugin for shared classes [message #604361 is a reply to message #604339] Mon, 25 January 2010 12:51 Go to previous message
Joey Mink is currently offline Joey MinkFriend
Messages: 87
Registered: July 2009
Location: Centreville, VA, USA
Member

Alan,

Thanks for the info and the link. I will definitely make use of the package-exporting and plug-in dependency trick.

And that link is great - I don't think I'll use it this time around, but I have a feeling that's going to come in handy soon!

Joey
Previous Topic:Plugin for shared classes
Next Topic:view need to other types of projects too
Goto Forum:
  


Current Time: Wed Nov 26 20:54:08 GMT 2014

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

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