Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363704 - New method on IDesktopExtension; customFormModificationDelegate
Summary: New method on IDesktopExtension; customFormModificationDelegate
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-14 10:06 EST by Ralph Steiner CLA
Modified: 2021-08-19 11:23 EDT (History)
1 user (show)

See Also:
zimmermann: juno+


Attachments
Suggested Patch (6.23 KB, patch)
2011-11-14 10:06 EST, Ralph Steiner CLA
stephan.leichtvogt: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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)