Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ui-dev] SWTException occurs when message is written into console while the workbench is getting closed.


You can check whether or not the platform is closing using this snippet...

PlatformUI.getWorkbench().isClosing()

Hope this helps (or that it's been fixed as per Remy's reply...;-),
Eric



aditya mk <mkaditya@xxxxxxxxx>
Sent by: platform-ui-dev-bounces@xxxxxxxxxxx

05/05/2009 03:06 AM

Please respond to
"Eclipse Platform UI component developers list."        <platform-ui-dev@xxxxxxxxxxx>

To
platform-ui-dev@xxxxxxxxxxx
cc
Subject
[platform-ui-dev] SWTException occurs when message is written into        console while the workbench is getting closed.





Hi,

  I got the following exception when I tried to write a message to console after workbench close action is invoked. ( I am using eclipse 3.4.2 version and my OS  is Win XP 32. )

    at org.eclipse.swt.SWT.error(SWT.java:3777)
    at org.eclipse.swt.SWT.error(SWT.java:3695)
    at org.eclipse.swt.SWT.error(SWT.java:3666)
    at org.eclipse.swt.widgets.Display.error(Display.java:1180)
    at org.eclipse.swt.widgets.Display.asyncExec(Display.java:648)
    at org.eclipse.ui.internal.console.ConsoleManager.warnOfContentChange(ConsoleManager.java:353)
    at org.eclipse.ui.console.IOConsoleOutputStream.notifyParitioner(IOConsoleOutputStream.java:250)
    at org.eclipse.ui.console.IOConsoleOutputStream.encodedWrite(IOConsoleOutputStream.java:240)
    at org.eclipse.ui.console.IOConsoleOutputStream.write(IOConsoleOutputStream.java:225)
    at org.eclipse.ui.console.MessageConsoleStream.print(MessageConsoleStream.java:56)
    at org.eclipse.ui.console.MessageConsoleStream.println(MessageConsoleStream.java:81)

Is there any way I can check that writing messages to console is no longer valid ?

Regards,
M.K.Aditya

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


Back to the top