Community
Participate
Working Groups
Replace with Local History is disabled for read-only resources. I believe that it should be enabled and, if selected, should perform a validateEdit (Kevin, please comment if I am wrong about this).
Michael's comments are exactly correct. I up'd the severity so this doesn't get lost.
There are no interesting enablement criteria for these actions in org.eclipse.compare. Should work.
If you look at the ReplaceWithPreviousEditionAction class (well actually its superclass EditionAction), when it handles a selection change callback, it calls getFiles(). This method ignores read-only files. So the list will be empty and the action enablement will be turned off. Moving to compare component for comments.
The validateEdit issues will be addressed after 2.1. Since the current behavior is "safe" (you cannot lose work), I'm setting priority to P3 for now.
fixed for I20030826