Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » closing a web browser editor
closing a web browser editor [message #646933] Mon, 03 January 2011 04:15 Go to next message
Eclipse UserFriend
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 11:25 Go to previous messageGo to next message
Eclipse UserFriend
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 14:43 Go to previous messageGo to next message
Eclipse UserFriend
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 15:21 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 02:59:30 EDT 2025

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

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

Back to the top