Home » Newcomers » Newcomers » Problem using 3.2.2 with Rich Client Platform Book
Problem using 3.2.2 with Rich Client Platform Book [message #206144] |
Thu, 19 April 2007 11:32  |
Eclipse User |
|
|
|
I'm working through the "Eclipse Rich Client Platform" book using Eclipse
3.2.2. The book was written for Eclipse 3.1, but they have updated sample
code for 3.2. On page 63 in the book, they add a new view without using a
wizard. You are instructed to add the extension "org.eclipse.ui.views"
and the right-click on the extension and select New > view.
When I do this, the only options on the context menu are "Generic" and
"Extension" -- there is no "view" option. I've tried to muddle past this
using the wizard, which generates a view. The wizard also creates a
category, which I'm guessing is new to 3.2. I've tried deleting the
category to make it look like the example. However, when I add the code
as indicated in the book and then run the application as instructed on
page 67, my Contacts view doesn't display.
I've tried using the compare feature to compare my code to the sample
code, and I can't see what's wrong. I've checked the book's web site and,
except for the updated samples, I can't find any notes about issues using
the book with Eclipse 3.2.
It seems that others must have run across this. Should I load 3.1 just to
go through the book? Is there some documentation for using this book with
3.2? Any help will be greatly appreciated. Thanks.
|
|
|
Re: Problem using 3.2.2 with Rich Client Platform Book [message #206152 is a reply to message #206144] |
Thu, 19 April 2007 11:43   |
Eclipse User |
|
|
|
Originally posted by: irbull.cs.uvic.ca
First you need to add the org.eclipse.ui.views extension. Right click,
and select new->extension. Then a list of extensions will appear, you
select org.eclipse.ui.views. Then right click on this extension and
select new -> view.
This seems to work in 3.3 and it should work in 3.2.
Cheers,
Ian
Mark Dexter wrote:
> I'm working through the "Eclipse Rich Client Platform" book using
> Eclipse 3.2.2. The book was written for Eclipse 3.1, but they have
> updated sample code for 3.2. On page 63 in the book, they add a new
> view without using a wizard. You are instructed to add the extension
> "org.eclipse.ui.views" and the right-click on the extension and select
> New > view.
>
> When I do this, the only options on the context menu are "Generic" and
> "Extension" -- there is no "view" option. I've tried to muddle past
> this using the wizard, which generates a view. The wizard also creates
> a category, which I'm guessing is new to 3.2. I've tried deleting the
> category to make it look like the example. However, when I add the code
> as indicated in the book and then run the application as instructed on
> page 67, my Contacts view doesn't display.
>
> I've tried using the compare feature to compare my code to the sample
> code, and I can't see what's wrong. I've checked the book's web site
> and, except for the updated samples, I can't find any notes about issues
> using the book with Eclipse 3.2.
>
> It seems that others must have run across this. Should I load 3.1 just
> to go through the book? Is there some documentation for using this book
> with 3.2? Any help will be greatly appreciated. Thanks.
>
>
>
|
|
|
Re: Problem using 3.2.2 with Rich Client Platform Book [message #206158 is a reply to message #206152] |
Thu, 19 April 2007 11:45   |
Eclipse User |
|
|
|
Originally posted by: irbull.cs.uvic.ca
Sorry, after re-reading your question, maybe you have added the
org.eclipse.ui.views. Are you sure you have the right dependencies
setup? Make sure org.eclipse.ui is added to you lits of dependencies.
Good luck :)
Ian
Ian Bull wrote:
> First you need to add the org.eclipse.ui.views extension. Right click,
> and select new->extension. Then a list of extensions will appear, you
> select org.eclipse.ui.views. Then right click on this extension and
> select new -> view.
>
> This seems to work in 3.3 and it should work in 3.2.
>
> Cheers,
> Ian
>
> Mark Dexter wrote:
>> I'm working through the "Eclipse Rich Client Platform" book using
>> Eclipse 3.2.2. The book was written for Eclipse 3.1, but they have
>> updated sample code for 3.2. On page 63 in the book, they add a new
>> view without using a wizard. You are instructed to add the extension
>> "org.eclipse.ui.views" and the right-click on the extension and select
>> New > view.
>>
>> When I do this, the only options on the context menu are "Generic" and
>> "Extension" -- there is no "view" option. I've tried to muddle past
>> this using the wizard, which generates a view. The wizard also
>> creates a category, which I'm guessing is new to 3.2. I've tried
>> deleting the category to make it look like the example. However, when
>> I add the code as indicated in the book and then run the application
>> as instructed on page 67, my Contacts view doesn't display.
>>
>> I've tried using the compare feature to compare my code to the sample
>> code, and I can't see what's wrong. I've checked the book's web site
>> and, except for the updated samples, I can't find any notes about
>> issues using the book with Eclipse 3.2.
>>
>> It seems that others must have run across this. Should I load 3.1
>> just to go through the book? Is there some documentation for using
>> this book with 3.2? Any help will be greatly appreciated. Thanks.
>>
>>
>>
|
|
| |
Re: Problem using 3.2.2 with Rich Client Platform Book [message #206374 is a reply to message #206275] |
Fri, 20 April 2007 07:56   |
Eclipse User |
|
|
|
Originally posted by: irbull.cs.uvic.ca
I don't have eclipse open right now (I will look more closely when i get
to work this morning), but try putting super.initialize(configurer); on
the first line of that method. If it works when the method is not
there, it is probably using one in the super class.
Again, I don't have eclipse open, so if this doesn't work just ignore me :)
cheers,
ian
Mark Dexter wrote:
> Thanks very much for your help. I still can't figure out the context
> menu, but I think I figured out the problem. I can use the wizard
> instead of the context menu to create the view. Then, if I delete the
> category and extra perspective created by the wizard, I can get it to work.
>
> The display problem seems to be related to the following code. On page
> 63 the book says to add this to the ApplicationWorkbenchAdvisor class in
> order to have the application remember it's prior size and location.
>
> public void initialize(IWorkbenchConfigurer configurer) {
> configurer.setSaveAndRestore(true);
> }
>
> With that code in, the view does not display. If I comment out that
> code, the view does display. I can work around it for now, but any
> ideas will be appreciated.
> Thanks again for your help.
>
>
|
|
|
Re: Problem using 3.2.2 with Rich Client Platform Book [message #206420 is a reply to message #206374] |
Fri, 20 April 2007 09:44  |
Eclipse User |
|
|
|
Ian Bull wrote:
> I don't have eclipse open right now (I will look more closely when i get
> to work this morning), but try putting super.initialize(configurer); on
> the first line of that method. If it works when the method is not
> there, it is probably using one in the super class.
> Again, I don't have eclipse open, so if this doesn't work just ignore me :)
> cheers,
> ian
> Mark Dexter wrote:
>> Thanks very much for your help. I still can't figure out the context
>> menu, but I think I figured out the problem. I can use the wizard
>> instead of the context menu to create the view. Then, if I delete the
>> category and extra perspective created by the wizard, I can get it to work.
>>
>> The display problem seems to be related to the following code. On page
>> 63 the book says to add this to the ApplicationWorkbenchAdvisor class in
>> order to have the application remember it's prior size and location.
>>
>> public void initialize(IWorkbenchConfigurer configurer) {
>> configurer.setSaveAndRestore(true);
>> }
>>
>> With that code in, the view does not display. If I comment out that
>> code, the view does display. I can work around it for now, but any
>> ideas will be appreciated.
>> Thanks again for your help.
>>
>>
Putting super.initialize(configurer); in the initialize method of the
ApplicationWorkbenchAdvisor did not change the behavior. So it still does
not show the view with the setSaveAndRestore(true). Thanks.
|
|
|
Goto Forum:
Current Time: Sun Jun 01 06:05:07 EDT 2025
Powered by FUDForum. Page generated in 0.08011 seconds
|