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

Use of an internal class

Hello,

I'm developping an extension for the Eclipse client and I'm facing a little problem. What I want to do is to search for a component but I don't care wich baseline or in wich workspace.

I thought about developping a new wizard which uses the ComponentSelectionPage. But this class is in the package "com.ibm.team.internal.filesystem.ui.wizards.component" which is discouraged. In fact, this class belongs to an internal package and should not be used outside of the com.ibm.team.filesystem.ide.ui plugin.

My questions are :
Could I use this class even if it is discouraged ? What are the implications of the use of a discouraged class ? If I can't use it, is there a built in wizard or page to get an IComponent on a repository by writing a regular expression ?

Best regards,
Sylvain

0 votes



3 answers

Permanent link
Internal says that this class is not exposed, and not intended to be used by developers outside the RTC product.

Sure, you 'can' use it.. I have had to make a couple plugins where I used and changed internal code. I submitted enhancement requests for the function I needed so in the future this might be a supported mechanism..

in the short term, I have to watch every release change to see if the code I used or modified is changed in any way, and update my code as soon as possible..

I also had to identify this problem to my company change control board, so that they could add it to the list of items to look out for on any change plan.

Sam

0 votes


Permanent link
Thank you for your feedback about using internal classes.

I'll try not using it for now and I'm still on searching a way to get an IComponent with the most integrated solution :) If I find a way, I'll update this post.

0 votes


Permanent link
Hellon,

I now have a solution wich is god enough for me.
I re-implement a new WizardPage using com.ibm.team.filesystem.ui.ComponentSelector item wich is the most important part of the built in WizardPage.
Moreover, I was able to hide the "filter" button wich was almost useless for my usecase :D

Regards,
Sylvain

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,938

Question asked: Jan 04 '12, 7:49 a.m.

Question was seen: 4,954 times

Last updated: Jan 04 '12, 7:49 a.m.

Confirmation Cancel Confirm