Community
Participate
Working Groups
Build Identifier: Build id: 20100917-0705 Custom features which are canceled and thus perform no action should not mark the editor dirty and should not appear in the command stack. Rather, the method boolean hasDoneChanges() should be considered by the framework. Reproducible: Always Steps to Reproduce: 1. create a class in the tutorial example 2. save 3. choose Rename but cancel the input dialog
In this case a CommandContainer is processed in the command stack but only for FeatureCommands the check hasDoneChanges is performed. Inside the container are again FeatureCommands, so the unpackking of the container is missing.
it seems that also public boolean hasDoneChanges() for a AbstractCreateFeature derived feature is not called
This issue is fixed now. hasDoneChanges() is now called for all kinds of features executed on the Graphiti command stack.
With Graphiti 0.8.0 hasDoneChanges() is still not called in the case of a double click feature.
See also the proposal in bug 340627.
ShapeEditPart.performRequest triggered the feature execution in a non-standard way. I have just changed that, so now double click features also can prevent marking the editor dirty.
Reopened because of an Email request by CPL to downport this fix to the 0.7 codeline.
Part of Graphiti Indigo 0.8.0
Reopened for the downport to 0.7
Prepared changes have been checked-in to 0.7 branch
Graphiti 0.7.2 build containing the fix is available
Graphiti service release 0.7.2 is released and availble for download