Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

Problem with Eclipse RCP example

Thread view: 
G. Ralph Kuntz, MD - 27 Apr 2006 14:45 GMT
I am trying to learn RCP from the book Eclipse Rich Client Platform by
McAffer and Lemieux.  I cannot get the example in chapter 5 to run
correctly.  The point where it is supposed to show a "Contacts" tab
still shows an empty window.

I installed the examples from the book and they also do not show this
tab.

I reinstall Eclipse (3.2RC1a - I was running 3.1) and still no good.  I
reinstalled the RCP SDK.  Still no go.

I am running Java 1.5.0_06 on Windows XP.

Any ideas?

Thanks.
G. Ralph Kuntz, MD - 27 Apr 2006 14:54 GMT
The plot thickens...

I ran with a breakpoint set on the
Perspective.createInitialLayout(IPageLayout layout) method and it is
never called.

The class ApplicationWorkbenchAdvisor lists the PERSPECTIVE_ID as
"org.eclipsercp.hyperbola.perspective", and the Perspective class has
this set as it's id in the extensions window of the plugin manager.

Any thoughts?
G. Ralph Kuntz, MD - 27 Apr 2006 19:24 GMT
Never mind :-).

I had the method

   public void initialize(IWorkbenchConfigurer configurer) {
       configurer.setSaveAndRestore(true);
   }

and had run the program -- it seems to have saved it state -- without
the contacts view.
thegallier@gmail.com - 12 May 2006 03:35 GMT
Well, this helped me out.

Thanks

> Never mind :-).
>
[quoted text clipped - 6 lines]
> and had run the program -- it seems to have saved it state -- without
> the contacts view.
egarson@gmail.com - 24 May 2006 22:20 GMT
Yep, me too :-)

By carefully following the example you will not see the Contacts view.
This is because the first task in beginning of chapter 5 is to call the
setSaveAndRestore() method which causes the Workbench to save settings
on shutdown. On subsequent invocations, the Workbench loads these
settings and bypass the IPerspectiveFactory which is only consulted the
first time the perspective is created.

This definitely belongs in the errata section for this book! There will
be lots of head scratching over this.

Edward


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.