Summary: | checking canRedo() for wrapped GEF commands | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Modeling] GMF-Runtime | Reporter: | Christian Vogt <cvogt> | ||||||||||
Component: | General | Assignee: | Alex Boyko <aboyko> | ||||||||||
Status: | RESOLVED FIXED | QA Contact: | |||||||||||
Severity: | major | ||||||||||||
Priority: | P3 | CC: | schafe | ||||||||||
Version: | unspecified | Keywords: | contributed | ||||||||||
Target Milestone: | 1.0.1 | ||||||||||||
Hardware: | PC | ||||||||||||
OS: | Windows XP | ||||||||||||
Whiteboard: | |||||||||||||
Attachments: |
|
Description
Christian Vogt
2006-07-12 10:28:53 EDT
Created attachment 48410 [details]
possible fix - attempt 1
Here is a possible fix with the utility method that checks whether commands wrapped inside the GEF command (or GMF command derived from GEF command) are redoable, i.e. a way to determine redoability correctly for GEF CompoundCommand and GMF IProxyCommand (a GEF-type wrapper for GMF command).
Utility is used in DeferredCreateConnectionViewAndElementCommand #canRedo method.
Utility should also be used in CommandProxy.canRedo() Created attachment 48419 [details]
possible fix - CommandProxy also uses utility
Added utility usage for CommandProxy.canRedo() as suggested.
Created attachment 48453 [details]
update
Noticed that to check GEF's command redoability a canUndo() should be called instead of canExecute
Reviewed by Mohammed, commited by Cherie. Marking as fixed. The utility hasn't been applied to CreateViewAndOptionallyElementCommand #canRedo() method. Created attachment 50513 [details]
patch for CreateViewAndOptionallyElementCommand
the patch for the command to which the utility hasn't been applied
Commited for 1.0.1 - marking as fixed [GMF Restructure] Bug 319140 : product GMF and component Runtime Diagram was the original product and component for this bug |