| Summary: | CCE thrown when using 'Link with Selection' from the view menu of the 'Git Repositories' view | ||
|---|---|---|---|
| Product: | [Technology] EGit | Reporter: | Remy Suen <remy.suen> |
| Component: | UI | Assignee: | Project Inbox <egit.ui-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | matthias.sohn, pwebster |
| Version: | 0.12 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Remy Suen
There's a blind cast to an SWT ToolItem, but that can be a MenuItem (in this case) or even a random Control (in the keybinding case). But I think this command wants to be a toggle command. See org.eclipse.example.commands.monitorCount as an example of a toggle command that saves its state between runs. https://github.com/paulweb515/commandsEclipseCon2011/blob/master/org.eclipse.example.commands/plugin.xml and https://github.com/paulweb515/commandsEclipseCon2011/blob/master/org.eclipse.example.commands/src/org/eclipse/example/commands/MonitorCountHandler.java PW Pushed patch for review http://egit.eclipse.org/r/#change,3798 merged as 4b93402ae3ad3de7116a83b6cf08c6db23bed631 |