Bug 84971 - Refactor RCP templates to use refactored advisors
Summary: Refactor RCP templates to use refactored advisors
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 85149 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-11 00:29 EST by Nick Edgar CLA
Modified: 2005-02-15 11:07 EST (History)
1 user (show)

See Also:


Attachments
Fixed up Sample Application (9.09 KB, application/zip)
2005-02-11 00:30 EST, Nick Edgar CLA
no flags Details
Fixed up sample mail application (zip) (42.67 KB, application/zip)
2005-02-14 14:51 EST, Nick Edgar CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2005-02-11 00:29:05 EST
build I20050209

The RCP templates should be fixed up to use the refactored advisors (see bug 83658).
Comment 1 Nick Edgar CLA 2005-02-11 00:30:04 EST
Created attachment 17848 [details]
Fixed up Sample Application

Created a Sample Application default RCP plugin, then refactored it.  Only the
advisor classes are affected.
Comment 2 Nick Edgar CLA 2005-02-11 00:31:38 EST
Now working on the mail template.  Next time I won't include the .class files in
the zip.
Comment 3 Nick Edgar CLA 2005-02-11 00:34:11 EST
The super send in preWindowOpen isn't actually needed -- the default
implementation is spec'ed to do nothing.
Comment 4 Wassim Melhem CLA 2005-02-13 23:41:00 EST
thanks Nick.
I made the changes to the basic template and actually moved it to the 
templates page.

Anxiously awaiting part 2 of the patch <g>.
Comment 5 Wassim Melhem CLA 2005-02-14 11:45:13 EST
*** Bug 85149 has been marked as a duplicate of this bug. ***
Comment 6 Nick Edgar CLA 2005-02-14 14:51:54 EST
Created attachment 17928 [details]
Fixed up sample mail application (zip)

This has quite a few other changes besides the advisor refactoring: simplified
viewer, various type renamings, some other code cleanup.

It would be nice if this could make it in for M5.
Comment 7 Nick Edgar CLA 2005-02-14 14:55:11 EST
Doh.  I included the .class files again.
Comment 8 Wassim Melhem CLA 2005-02-14 16:27:23 EST
thanks Nick.  Now it certainly can make it into M5.

We now keep 2 copies of each RCP template.  One to be generated against a 3.0 
target platform where those new classes were not invented.  One to be 
generated against 3.1 because the 3.0 template results in deprecated code.
Comment 9 Ed Burnette CLA 2005-02-14 23:21:48 EST
I forgot to ask, is there anything that documents the API changes themselves?
Comment 10 Wassim Melhem CLA 2005-02-15 05:45:40 EST
All done.  thanks Nick.
Comment 11 Nick Edgar CLA 2005-02-15 09:21:50 EST
Wassim, if the non-advisor changes could be put into the 3.0 template, that
would be good.  In particular, the viewer changes in NavigatorView (and its
renaming).  Also, for the image handling it's best to use the AbstractUIPlugin
method rather than Bundle.find.

Ed, the only documentation for the API changes is the Javadoc.
If you'd like me to fix up the tutorial examples, I can do so.

Comment 12 Nick Edgar CLA 2005-02-15 09:35:10 EST
Actually, bug 83658 describes the API change.  Sorry Ed, I meant to cc you on this.
Comment 13 Wassim Melhem CLA 2005-02-15 10:20:14 EST
already did all of that.
Comment 14 Ed Burnette CLA 2005-02-15 10:56:01 EST
Nick, I never turn down an offer to do work so feel free, but only if you change
the tutorial text to match it. If you don't have time for that, that's ok
because they'll continue to work due to the compatability layer you put in.
Comment 15 Nick Edgar CLA 2005-02-15 11:07:34 EST
I probably won't have the chance to fix up the tutorials for M5, but I would
like to see them changed to use the new advisor structure.  It really does lead
to a cleaner factoring.