Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Could someone check the RAP example, I guess there might be an error(When close PopupMenu, SWT.Disposed Exception is thrown.)
Could someone check the RAP example, I guess there might be an error [message #520137] Thu, 11 March 2010 09:47 Go to next message
wayne  is currently offline wayne Friend
Messages: 13
Registered: March 2010
Junior Member
This would happen in two Scenarios:

The example used is the first one on website:

http://www.eclipse.org/rap/demos.php

1. Add an Editor to the example -> Add a New MenuItem to show the Editor -> Run Example -> Execute the MenuItem; Exception is thrown.
I find the error is thrown in the method close() in MenuPopup.java. So I do "//close()", then run again. Works!


2. Add an Editor to the modified code as mentioned above, let the execution of the MenuItem to open a wizard, using wizard to open the Editor.
Can't solve. I guess it might happen in som place where wizard is closing. But I can't change the code.
Re: Could someone check the RAP example, I guess there might be an error [message #520417 is a reply to message #520137] Fri, 12 March 2010 05:26 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2359
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Wayne,

without testing your scenario, you mention MenuPopup class, but I can't
find such a class in RAP from CVS HEAD. What RAP version are you using?

Best,
Ivan

On 03/11/2010 11:47 AM, wayne wrote:
> This would happen in two Scenarios:
>
> The example used is the first one on website:
>
> http://www.eclipse.org/rap/demos.php
>
> 1. Add an Editor to the example -> Add a New MenuItem to show the
> Editor -> Run Example -> Execute the MenuItem; Exception is thrown. I
> find the error is thrown in the method close() in MenuPopup.java. So I
> do "//close()", then run again. Works!
>
>
> 2. Add an Editor to the modified code as mentioned above, let the
> execution of the MenuItem to open a wizard, using wizard to open the
> Editor. Can't solve. I guess it might happen in som place where wizard
> is closing. But I can't change the code.
Re: Could someone check the RAP example, I guess there might be an error [message #520426 is a reply to message #520417] Fri, 12 March 2010 05:50 Go to previous messageGo to next message
Holger Staudacher is currently offline Holger StaudacherFriend
Messages: 166
Registered: July 2009
Senior Member
hi Wayne, hi Ivan,
the class MenuPopup was a design related one. We used this class to
provide a styled menu. Since we can style menus with rounded corners
and gradients this class was not longer needed. So, I removed the class
right after RAP 1.3 M5 and replaced the menu behaviour with the one
from the workbench.

@Wayne: your error should be goen with M6 or the latest version from HEAD.

Hope this helps.

Regards Holger

On 2010-03-12 11:13:37 +0100, Ivan Furnadjiev <ivan@eclipsesource.com> said:

> Hi Wayne,
>
> without testing your scenario, you mention MenuPopup class, but I can't
> find such a class in RAP from CVS HEAD. What RAP version are you using?
>
> Best,
> Ivan
>
> On 03/11/2010 11:47 AM, wayne wrote:
>> This would happen in two Scenarios:
>>
>> The example used is the first one on website:
>>
>> http://www.eclipse.org/rap/demos.php
>>
>> 1. Add an Editor to the example -> Add a New MenuItem to show the
>> Editor -> Run Example -> Execute the MenuItem; Exception is thrown. I
>> find the error is thrown in the method close() in MenuPopup.java. So I
>> do "//close()", then run again. Works!
>>
>>
>> 2. Add an Editor to the modified code as mentioned above, let the
>> execution of the MenuItem to open a wizard, using wizard to open the
>> Editor. Can't solve. I guess it might happen in som place where wizard
>> is closing. But I can't change the code.


--
-----------------------------------------

http://eclipsesource.com

http://twitter.com/eclipsesource
Re: Could someone check the RAP example, I guess there might be an error [message #520671 is a reply to message #520426] Sun, 14 March 2010 03:33 Go to previous message
wayne  is currently offline wayne Friend
Messages: 13
Registered: March 2010
Junior Member
Hi Holger, Ivan,

You're right, Holger. Now I changed to RAP 1.3M5, it worked.

Thanks alot, Holger and Ivan.

regards,

Wayne
Previous Topic:It seems a Bug when calling "WorkbenchPage.resetPerspective"
Next Topic:Implementing org.eclipse.swt.browser.BrowserFunction
Goto Forum:
  


Current Time: Wed Dec 01 10:23:13 GMT 2021

Powered by FUDForum. Page generated in 0.01873 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top