Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ui-dev] Example RCP plug-in?

Doug just tried again after installing Mozilla 1.5, and all works well 
now.

However, this still doesn't explain the stack you were seeing below.

Nick

----- Forwarded by Nick Edgar/Ottawa/IBM on 11/13/2003 12:51 PM -----

Nick Edgar/Ottawa/IBM
11/13/2003 12:50 PM

To
platform-ui-dev@xxxxxxxxxxx
cc
platform-swt-dev@xxxxxxxxxxx
Subject
Re: [platform-ui-dev] Example RCP plug-in?





Jared,

Which version of GTK are you running?

Doug and I ran this on his machine, and got a different exception: an 
SWTException on creation of the Browser widget (it was complaining about 
running out of handles, when actually it was unable to load the library).

Doug says:
> The problem can be traced to these few lines:
> "A: The SWT Browser widget for the Linux GTK and the Linux Motif 
platforms is based on Mozilla. You must ensure a supported build of 
Mozilla is installed. The SWT Browser widget for the Eclipse 3.0 milestone 
5 (Linux GTK or Linux Motif) requires Mozilla version 1.5 GTK2 to be 
installed."
> 
> I have "mozilla-1.2.1-26" installed, which is the default install for 
RedHat 9.

Does someone on the SWT team have a machine with Mozilla version 1.5 GTK2 
installed that I could use?

Thanks,
Nick





Jared Burns <jaredburns@xxxxxxx> 
Sent by: platform-ui-dev-admin@xxxxxxxxxxx
11/13/2003 01:43 AM
Please respond to
platform-ui-dev


To
platform-ui-dev@xxxxxxxxxxx
cc

Subject
Re: [platform-ui-dev] Example RCP plug-in?






I'm on Linux-GTK. I created a host installation with the minimal plug-ins 
as 
described on the RCP doc and included the latest UI and ui.workbench 
plugins 
from CVS as per Jim's warning.

To get further, I just commented out the code that was setting the shell 
title. But once I did that, I got an error trying to load the swt-mozilla 
library for the browser.

I then took the plug-ins from my install (the minimal plugins including 
the UI 
stuff from HEAD and your example plug-in) and gave them to John. On his 
machine (Win2K, I believe), we just replaced the appropriate SWT and 
Update 
plugins with the win32 versions and the example works. Is SWT's Browser 
class 
supposed to work on GTK?

Anyway, we're just going to use John's machine to demo your example 
tomorrow.

Thanks for the help,
- Jared

On Wednesday 12 November 2003 08:28 pm, Nick Edgar wrote:
> Jared,
>
> This is working OK for me on Windows, self-hosting on I20031111 with the
> latest Core, Help and UI from HEAD.
>
> Do you have any more info on this bug?  What's your setup (I notice 
you're
> running from the command line rather than self-hosting)?  Anything in 
the
> log?
> What other plugins are present?  The browser example should only have 
the
> bare minimum visible to it, as per
> 
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-ui-home/rc

>p-proposal/generic_workbench_overview.html. However if more are present,
> you'll just get extra cruft in the example, it shouldn't fail.
>
> The real problem indicated by the stack below is that Workbench.runUI is
> terminating too early.  The SWTException is just fallout from the
> asyncExec for setting the title not checking if the shell has been
> disposed.
>
> Does the problem occur if you step through it in the debugger?
>
> Please capture the stack below and any further details in a PR.
>
> Thanks,
> Nick
>
>
>
>
> Jared Burns <jaredburns@xxxxxxx>
> Sent by: platform-ui-dev-admin@xxxxxxxxxxx
> 11/12/2003 06:34 PM
> Please respond to
> platform-ui-dev
>
>
> To
> platform-ui-dev@xxxxxxxxxxx
> cc
>
> Subject
> Re: [platform-ui-dev] Example RCP plug-in?
>
>
>
>
>
>
> Thanks for the info. When I run the example, I get the following at
> startup
> (no workbench appears):
>
> ./eclipse -application org.eclipse.ui.examples.browser.browserApp
> org.eclipse.swt.SWTException: Widget is disposed
>         at org.eclipse.swt.SWT.error(SWT.java:2538)
>         at org.eclipse.swt.SWT.error(SWT.java:2468)
>         at org.eclipse.swt.widgets.Widget.error(Widget.java:381)
>         at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:317)
>         at 
org.eclipse.swt.widgets.Decorations.setText(Decorations.java:5
> 67)
>         at org.eclipse.swt.widgets.Shell.setText(Shell.java:994)
>         at 
org.eclipse.ui.internal.WorkbenchWindowConfigurer.setTitle(Wor
> kbenchWindowConfigurer.java:245)
>         at 
org.eclipse.ui.examples.browser.BrowserAdvisor$1.run(BrowserAd
> visor.java:44)
>         at 
org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
>         at 
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchron
> izer.java:102)
>         at 
org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:
> 1816)
>         at 
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1
> 622)
>         at org.eclipse.swt.widgets.Display.release(Display.java:1669)
>         at org.eclipse.swt.graphics.Device.dispose(Device.java:174)
>         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1366)
>         at 
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbe
> nch.java:235)
>         at 
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.jav
> a:139)
>         at 
org.eclipse.ui.examples.browser.BrowserApp.run(BrowserApp.java
>
> :38)
>
>         at 
org.eclipse.core.internal.boot.InternalBootLoader.run(Internal
> BootLoader.java:858)
>         at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
>         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at org.eclipse.core.launcher.Main.basicRun(Main.java:299)
>         at org.eclipse.core.launcher.Main.run(Main.java:767)
>         at org.eclipse.core.launcher.Main.main(Main.java:601)
>
> On Wednesday 12 November 2003 01:50 pm, Jim des Rivieres wrote:
> > Hi Jared,
> >
> > I've just fixed a bug
> > (https://bugs.eclipse.org/bugs/show_bug.cgi?id=46523) in 20031111 that
>
> was
>
> > preventing non-IDE applications of generic workbench from coming up.
> >
> > You will need to load UI from HEAD, or get N20031112 in the morning.
> >
> > Nick's browser example is at:
>
> 
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-ui-home/ex

>
> >amples/rcp/browserExample.zip
>
> _______________________________________________
> platform-ui-dev mailing list
> platform-ui-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-ui-dev
>
>
> _______________________________________________
> platform-ui-dev mailing list
> platform-ui-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-ui-dev

_______________________________________________
platform-ui-dev mailing list
platform-ui-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ui-dev




Back to the top