RepositoryFilesView - API ?
Hello to the forum members,
I want to write code that will display specific file in repository files view, based on its local path.
I found out that the view com.ibm.team.internal.filesystem.ui.views.repositoryfiles.RepositoryFilesView does not provide method to get the tree viewer of the view, so it seems that I'm unable to implement the requested behavior.
Is this correct ? Is there a way to get access to the tree viewer ?
Thanks,
Gidi
I want to write code that will display specific file in repository files view, based on its local path.
I found out that the view com.ibm.team.internal.filesystem.ui.views.repositoryfiles.RepositoryFilesView does not provide method to get the tree viewer of the view, so it seems that I'm unable to implement the requested behavior.
Is this correct ? Is there a way to get access to the tree viewer ?
Thanks,
Gidi
Accepted answer
'com.ibm.team.internal.filesystem.ui.views.repositoryfiles.RepositoryFilesView' is internal and there is no method to get the tree viewer that is used in this class. In fact, even the Pending Changes view code should have bee put in a package that has 'internal' in it (however it looks like this was missed). In general though, all UI code should be treated as internal as it can and will change in future releases. As a rule of thumb, unless the code is included in the downloadable "Plain Java Client Libraries API documentation" zip (ex: https://jazz.net/downloads/rational-team-concert/releases/6.0.2/RTC-Client-plainJavaLib-API-javadoc-6.0.2.zip) it should be treated as internal (Note: the SCM UI code does not exist in that download). However you could always take a slightly hacky approach, and use Java reflection to pull out the tree viewer (which is stored as a Java field of the class) (but always remember that all UI code might change in the future).
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jul 19 '16, 2:43 a.m.Gidi Gal
Jul 19 '16, 3:39 a.m.