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?

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/rcp-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




Back to the top