Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 347655

Summary: Need to extend AbstractScoutEditorPart#closePart
Product: z_Archived Reporter: Claudio Guglielmo <claudio.guglielmo>
Component: ScoutAssignee: Andreas Hoegger <Andreas.Hoegger>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: Andreas.Hoegger, wayne.beaton, zimmermann
Version: unspecifiedFlags: zimmermann: indigo+
zimmermann: juno+
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
Patch which allowes to override the essential part zimmermann: iplog+

Description Claudio Guglielmo CLA 2011-05-30 10:00:18 EDT
Build Identifier: 

I need to replace getSite().getPage().closeEditor(this, false); with custom code. Even though closePart is public overriding the whole function does not work because it uses private members (locks) which I cannot access. 

It would be great if either those member were public or if the closing of the editor would be separated as a protected function.

Reproducible: Always
Comment 1 Claudio Guglielmo CLA 2011-05-30 10:03:06 EDT
Created attachment 196900 [details]
Patch which allowes to override the essential part
Comment 2 Andreas Hoegger CLA 2011-07-15 17:33:29 EDT
Patch applied for Indigo SP1 and trunk. Also changed the closePart method to final.
Thank you Claudio
Comment 3 Wayne Beaton CLA 2011-09-20 07:36:40 EDT
The patch, if applied to the code base, must be flagged iplog+ so that it appears in the log.
Comment 4 Matthias Zimmermann CLA 2011-10-10 12:34:23 EDT
shipped with scout 3.7.1
Comment 5 Wayne Beaton CLA 2011-10-11 11:04:09 EDT
Ideally, attachments should be marked iplog+ rather than the bug itself. By so-marking the bug, all comments are regarded as potential IP contributions (this is a limitation of Bugzilla). By marking just the attachment, only the attachment will appear in the IP log.

In this case, I think you really need to unmark the bug and mark the attachment iplog+ instead.