How to get the corresponding RTC icon to a file/folder represented as a versionable
Krasimir Malchev (56●6●31)
| asked Jun 21 '16, 8:21 a.m.
edited Jun 21 '16, 8:47 a.m. by David Lafreniere (4.8k●7)
When we open a stream's repository files view (for example) each file / folder is preceded by a corresponding icon in RTC. That is, if the file is Java file, then the icon correspond to that type of a file (.java). If there is a folder, then the icon in front of the folder denotes that.
How can I fetch the appropriate icon based on the type of a versionable (and its extension/MIME type, maybe) with the RTC API? |
Accepted answer
Here is how you get the corresponding icon:
/** Michael Valenta selected this answer as the correct answer
Comments Cool! Thanks David
Krasimir Malchev
commented Jun 29 '16, 2:03 a.m.
Thanks a lot, David!
Krasimir Malchev
commented Aug 09 '16, 1:18 a.m.
Hello David.
In relation to the topic: Is there an easy way to get the corresponding icon of a work item and a change set.
Thanks for your help! |
One other answer
Ralph Schoon (63.5k●3●36●46)
| answered Jun 21 '16, 9:27 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
This is implemented in Eclipse by providing and registering decorators such as extending org.eclipse.ui.decorators. You can try to search code in the client SDK. It is definitely not a public user API.
|
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.