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

SCM: Disable Discard option in Eclipse

Hello Team,


In RTC Eclipse client, how to disable Discard option? Or is there any other way to hide/handle Discard option in Eclipse client.

Any Solution...

Regards,
Kiran

0 votes



One answer

Permanent link
There is no official / out-of-the-box way to remove the "Discard" context menu action from the RTC clients.

I would say you can request an RFE or create an Enhancement work item, but personally I don't think that this would raise in priority over all the existing RFEs/Enhancements.

Also, why would you want to remove such a basic operation?


To really answer your question though, there are "hacky" ways to remove context menu actions in Eclipse as shown in the links below, but this won't work for the RTC Visual Studio client.
Keep in mind that this 'support' is not really part of RTC, and is part of Eclipse itself. In you need to investigate more into this, try asking in and reading the Eclipse forums.

0 votes

Comments

Hello David, 


Thank you for the reply. 

Actual problem is, without knowing, the users discarding the Changesets and its quite difficult to get back the discard Changesets again. To avoid this confusion we want to disable the Discard option. And I got through the link which you have shared but regarding Disabling option I didn't get any idea.

I'm sorry that 'https://rsjazz.wordpress.com/2014/03/24/hiding-ui-contributions-in-the-rtc-eclipse-client/' is not clear for you. Since this is an Eclipse feature, you could try searching through Eclipse sites/articles/help to see if they explain it in more detail.

As of RTC 6.0.4 we have added an Operation History view which makes it extremely trivial to recover discarded change sets. You can easily rollback your workspace or individual component to 'any' state in the past (such as a state right before you discarded a change set). Or if you don't want to roll-back, it still makes it easy to find discarded change sets, and open them in the Change Explorer or Change Summary views, and either accept them, or create a patch off them, etc.

For more information on the Operation History view, see:

In addition it would be possible to write preconditions/advisors for checkin and deliver that prevent checkin and delivery if your rules are not met. In which case you can keep the menus and just add your new entry.

See https://rsjazz.wordpress.com/2013/09/30/delivering-change-sets-and-baselines-to-a-stream-using-the-plain-java-client-libraries/
and https://jazz.net/library/article/89651
for examples.

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
× 7,486
× 136
× 35

Question asked: Jun 19 '18, 6:16 a.m.

Question was seen: 2,666 times

Last updated: Jun 21 '18, 10:41 a.m.

Confirmation Cancel Confirm