showView exception [message #243364] |
Fri, 21 May 2004 19:50  |
Eclipse User |
|
|
|
I have added one view which becomes visible correctly when I make it
visible from Windows->Show View->Other->MyView. Then the view gets visible
correctly.
Now instead of that if I am trying to show the view from one of the
popup-menus action classes I am getting the following exception.
org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:2625)
at org.eclipse.swt.SWT.error(SWT.java:2555)
at org.eclipse.swt.widgets.Display.error(Display.java:701)
at org.eclipse.swt.widgets.Display.checkDevice(Display.java:526 )
at org.eclipse.swt.widgets.Display.getData(Display.java:994)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:58)
at org.eclipse.ui.internal.ViewFactory.restoreView(ViewFactory. java:417)
at org.eclipse.ui.internal.Perspective.showView(Perspective.jav a:1405)
at
org.eclipse.ui.internal.WorkbenchPage.busyShowView(Workbench Page.java:727)
at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage .java:704)
at org.eclipse.ui.internal.WorkbenchPage$13.run(WorkbenchPage.j ava:2891)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:51)
at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage .java:2888)
at
com.appperfect.plugins.eclipse.actions.CALauncher.startCA(CA Launcher.java:143)
at
com.appperfect.plugins.eclipse.actions.MenuHandler$1.run(Men uHandler.java:118)
This is the call
workbenchPage.showView("test.plugins.eclipse.views.MyView", null,
IWorkbenchPage.VIEW_CREATE);
Please guide.
Thanks in advance.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03391 seconds