Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

can use share library in development plugin?

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?

0 votes



One answer

Permanent link

 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.

 

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,943

Question asked: Jun 04 '19, 3:32 a.m.

Question was seen: 1,786 times

Last updated: Jun 04 '19, 6:25 a.m.

Confirmation Cancel Confirm