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

Bug 363704

Summary: New method on IDesktopExtension; customFormModificationDelegate
Product: z_Archived Reporter: Ralph Steiner <steiner.ralph>
Component: ScoutAssignee: Project Inbox <scout.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: zimmermann
Version: unspecifiedFlags: zimmermann: juno+
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Suggested Patch stephan.leichtvogt: iplog+

Description Ralph Steiner CLA 2011-11-14 10:06:41 EST
Created attachment 206951 [details]
Suggested Patch

To allow DesktopExtensions to do general modifications on forms a new method was added to IDesktopExtension, which is call right at the beginning of the addForm method of the AbstractDesktop.
The difference between a simple listner to the formAddedEvent and this method is, that the method is called before any UI is informed about a new form.
The form is provided in a holder. This allows it to prevent the form being added
to the desktop (set reference to null) do some general modifications need to be
done prior UI instantiation or even set it to another instance.
Comment 1 Stephan Leicht Vogt CLA 2011-11-15 05:39:33 EST
Thanks for the patch. I reviewed and applied it to trunk for Eclipse 3.8
Comment 2 Matthias Zimmermann CLA 2012-07-09 06:49:48 EDT
ticket closed.
deliverd as part of eclipse scout 3.8.0 (juno release train)