Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » showView exception
showView exception [message #243364] Fri, 21 May 2004 19:50 Go to next message
Eclipse UserFriend
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.
Re: showView exception [message #243542 is a reply to message #243364] Sat, 22 May 2004 11:31 Go to previous message
Eclipse UserFriend
Originally posted by: Marko.Schulz.gmx.de

S Dixit wrote:
>
> org.eclipse.swt.SWTException: Invalid thread access

Did you read the FAQ?
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform -swt-home/faq.html#uithread

marko
Previous Topic:[3.0M8] Action in JFace app throws ExceptionInInitializerError
Next Topic:M versions stable enough continued
Goto Forum:
  


Current Time: Sat Jul 19 12:46:22 EDT 2025

Powered by FUDForum. Page generated in 0.03391 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top