Opened 17 years ago

Closed 16 years ago

Last modified 11 years ago

#156 closed defect (fixed)

closing an active editor doesn't work (buggy or confusing PGRetargetableAction.setBusy())

Reported by: alex heneveld Owned by: David Aspinall
Priority: blocker Milestone:
Component: 1:pg-eclipse Keywords:
Cc:

Description (last modified by David Aspinall)

if i close an active editor, the GotoAction? throws an NPE when trying to undo-all the proof script. thereafter the user cannot activate any script (even re-opening the same file) until the prover is restarted.

see comments in PGRetargetableAction.setBusy(): it looks like this call does not do what it is supposed to if the document is set manually (as it is from ActivateAction?.closeDownScript).

as a larger issue, we need to consider the different cases of closing (and re-opening) a script:

(a) if the script is fully processed, the user probably wants to keep it in the prover's memory (i.e. don't retract); however they do need a way to retract it later, probably re-opening the script should "remember" it is fully processed. (not sure what we do currently)

(b) if the script is partially processed, it is probably okay to undo all (which we currently do, modulo fixing the above bug). however it would be nicer, i think, to give the user the option to (a) discard (undo all); (b) finish processing; (c) cancel. (and maybe option to "do nothing", leave partially processed, and restoring it if they open the file later.) we used to do this, but it is commented out (in ActivateAction?). possibly because we were not getting reliably informed about shutdown events and so were pointlessly prompting the user on shutdown...)

Attachments (1)

mylyn-context.zip (11.8 KB) - added by David Aspinall 16 years ago.
mylyn/context/zip

Download all attachments as: .zip

Change History (5)

comment:1 Changed 16 years ago by David Aspinall

Description: modified (diff)
Owner: changed from David Aspinall to Graham Dutton
Status: newassigned

comment:2 Changed 16 years ago by David Aspinall

Description: modified (diff)
Owner: changed from Graham Dutton to David Aspinall
Priority: majorblocker

I'm having a quick look at this. Note (a): we do remember processed scripts, see ControlledDocuments class.

I've committed some possible improvements and reinstated the dialog (one reason to disable it is the lack of a "remember my decision"!). But currently still buggy --- ad hoc actions without editors still aren't managed well, maybe we need a document-based action with retargetable wrapper.

Changed 16 years ago by David Aspinall

Attachment: mylyn-context.zip added

mylyn/context/zip

comment:3 Changed 16 years ago by David Aspinall

Resolution: fixed
Status: assignedclosed

Solved by adding session manager argument to the non-retargetable constructors used for temporary SendAll and UndoAll actions.

comment:4 Changed 11 years ago by David Aspinall

Milestone: PG-Eclipse-1.0.6

Milestone PG-Eclipse-1.0.6 deleted

Note: See TracTickets for help on using tickets.