Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » closing a web browser editor
closing a web browser editor [message #646933] Mon, 03 January 2011 09:15 Go to next message
Roel De Nijs is currently offline Roel De NijsFriend
Messages: 28
Registered: March 2010
Junior Member
Hi,

Best wishes for 2011!

I use the following code to open an internal browser as editor in our rcp application:
IWorkbenchBrowserSupport browserSupport = PlatformUI.getWorkbench().getBrowserSupport();
IWebBrowser browser = browserSupport.createBrowser(style, browserId, title, null);
browser.openURL(new URL(url));


When I close this browser editor with Ctrl+F4 I get a famous "widget is disposed" error. The widget responsible for throwing this error is an OleFrame instance and the error is thrown due to the data member "display" of this instance being null.
When I close this browser editor using an alternative (clicking on the X, using Ctrl+W,...) this error does not occur.

Has anyone got an idea about how I can solve this (minor) issue?

Greetz,
Roel
Re: closing a web browser editor [message #647115 is a reply to message #646933] Tue, 04 January 2011 16:25 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi,

I was not aware of this problem, but I see it happen in base eclipse as
well, so I've logged https://bugs.eclipse.org/bugs/show_bug.cgi?id=333493 .
I don't think there's a required change in your app since it's a bug in swt.

Grant


"Roel De Nijs" <roel@javaroe.be> wrote in message
news:ifs3q7$a0a$1@news.eclipse.org...
> Hi,
>
> Best wishes for 2011!
>
> I use the following code to open an internal browser as editor in our rcp
> application:
>
> IWorkbenchBrowserSupport browserSupport =
> PlatformUI.getWorkbench().getBrowserSupport();
> IWebBrowser browser = browserSupport.createBrowser(style, browserId,
> title, null);
> browser.openURL(new URL(url));
>
>
> When I close this browser editor with Ctrl+F4 I get a famous "widget is
> disposed" error. The widget responsible for throwing this error is an
> OleFrame instance and the error is thrown due to the data member "display"
> of this instance being null.
> When I close this browser editor using an alternative (clicking on the X,
> using Ctrl+W,...) this error does not occur.
>
> Has anyone got an idea about how I can solve this (minor) issue?
>
> Greetz,
> Roel
Re: closing a web browser editor [message #647163 is a reply to message #647115] Tue, 04 January 2011 19:43 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
This is fixed in the 3.6.2 stream.

Grant


"Grant Gayed" <grant_gayed@ca.ibm.com> wrote in message
news:ifvhbh$ps8$1@news.eclipse.org...
> Hi,
>
> I was not aware of this problem, but I see it happen in base eclipse as
> well, so I've logged https://bugs.eclipse.org/bugs/show_bug.cgi?id=333493
> . I don't think there's a required change in your app since it's a bug in
> swt.
>
> Grant
>
>
> "Roel De Nijs" <roel@javaroe.be> wrote in message
> news:ifs3q7$a0a$1@news.eclipse.org...
>> Hi,
>>
>> Best wishes for 2011!
>>
>> I use the following code to open an internal browser as editor in our rcp
>> application:
>>
>> IWorkbenchBrowserSupport browserSupport =
>> PlatformUI.getWorkbench().getBrowserSupport();
>> IWebBrowser browser = browserSupport.createBrowser(style, browserId,
>> title, null);
>> browser.openURL(new URL(url));
>>
>>
>> When I close this browser editor with Ctrl+F4 I get a famous "widget is
>> disposed" error. The widget responsible for throwing this error is an
>> OleFrame instance and the error is thrown due to the data member
>> "display" of this instance being null.
>> When I close this browser editor using an alternative (clicking on the X,
>> using Ctrl+W,...) this error does not occur.
>>
>> Has anyone got an idea about how I can solve this (minor) issue?
>>
>> Greetz,
>> Roel
>
>
Re: closing a web browser editor [message #647170 is a reply to message #646933] Tue, 04 January 2011 20:21 Go to previous message
Roel De Nijs is currently offline Roel De NijsFriend
Messages: 28
Registered: March 2010
Junior Member
Thanks Grant for your swift reply and patch.

Currently we are using Eclipse 3.5, so when we update to the Helios version in the coming months we will benefit from the patch Smile

Kind regards,
Roel
Previous Topic:ConfigurationScope is not working
Next Topic:Notify the Application specific event
Goto Forum:
  


Current Time: Thu Mar 28 22:00:28 GMT 2024

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

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

Back to the top