It's all about the answers!

Ask a question

can use share library in development plugin?


faith chen (111) | asked Jun 04 '19, 3:32 a.m.

If have two plugin and need to use the same method


plugin A:
  method A

plugin B:
 method A

how it become a shared way?

One answer



permanent link
Ralph Schoon (62.0k33643) | answered Jun 04 '19, 6:25 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 This is basically an Eclipse extending question and I would suggest you search for 

"shared libraries in eclipse plugins" or something like that. You can limit the search to site:eclipse.com or to site:stackoverflow.com to get an even higher chance.

As far as I am aware, you would basically 
  • Create a plugin C where you have the common code.
  • Add plugin C to the dependencies of plugin A 
  • Add plugin C to the dependencies of plugin b
This would work if you put all plugins into one feature.

If you need different features, follow the Extensions Workshop that creates a feature for the common code and uses that feature in the client and the server features.

 

Your answer


Register or to post your answer.