Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsswing/awt threading question
https://www.eclipse.org/forums/index.php/mv/msg/139601/440009/#msg_440009
swing component inside swt. the ViewPart registers itself as an
ISelectionProvider using an adapter for the ListSelectionModel in the
JList. The ViewPart is providing IAdaptable(s) for the Property view and
the Outline view which are both still swt components. When the
ListSelectionModel fires the Property view is notified by the adapter
and it got an SWTException indicating a threading error - so in the
ISelectionProvider adapter i put the notification inside a
Display.getDefault().asyncExec(). ok, so this left me wondering when i
get calls coming from swt components - do i need to wrap them in
EventQueue.invokeLater()?
"David Scott" <user@example.net> wrote in message
news:cdjfnp$rc8$1@eclipse.org...
> i am writing a ViewPart for the eclipse Workbench using a simple JList
> swing component inside swt. the ViewPart registers itself as an
> ISelectionProvider using an adapter for the ListSelectionModel in the
> JList. The ViewPart is providing IAdaptable(s) for the Property view and
> the Outline view which are both still swt components. When the
> ListSelectionModel fires the Property view is notified by the adapter
> and it got an SWTException indicating a threading error - so in the
> ISelectionProvider adapter i put the notification inside a
> Display.getDefault().asyncExec(). ok, so this left me wondering when i
> get calls coming from swt components - do i need to wrap them in
> EventQueue.invokeLater()?
>
> thanks-
>]]>Steve Northover2004-07-21T16:38:41-00:00