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?

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



Back to the top