Bugzilla – Bug 482
HandleActivateDiscard is not being called when the editor is dirty
Last modified: 2011-06-04 16:21:37 UTC
DETAILED DESCRIPTION: HandleActivateDiscard is not being called when the editor is dirty this does not allow the policy editor to close when it's parent is deleted. This is because HandleActivateDiscard is not called if the isDirty flag is true. We should call HandleActivateDiscard regardless of whether or not we are dirty if one of the removed resources is our input resource or any of it's parent resources. BUILD NUMBER: Oses/CONFIG: STEPS TO REPRO: 1. Create and save a policy in the Driver Editor 2. Lauch the policy editor and modify the policy without saving 3. Return to the Driver Editor and delete the policy 4. Save the Driver Editor RESULTS: EXPECTED: WORKAROUNDS: CUSTOMER IMPACT: NTS entered defects should also include: Additional debug info like screenshots, screencams, log files, trace files, packet traces, memory coredump location. Accurate customer information so that proper prioritizing of the defect is possible (mainly for NTS defects)
This has nothing to do with the Modeler code - it's just the interaction between two Policy Editors and the problem is in DesignerMultiPageEditorPart Line #210.
I just went over this with ryan, i'm going to up the priority. Basically, instead of just checking for !isDirty() we need a check that is more like (!isDirty() || isRootObject()) -> then go ahead and close the editor (or possibly call HandleActivateDiscard ... but prob. just leave it seperate)
This has been fixed. I tested it with the current build.
Included in Designer build 20050107
Adding built keyword.
Marking closed/resolved fixed bugs public view.