[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] Re: Generating MouseEvents
|
Hi Rudi,
Display.post(...) can be used to create mouse events and post them into the
OS.
The focus behaviour that you describe sounds strange though, and I've never
heard of this before. At what point do you try to set the focus back to the
Table? Is it possible that it is getting set to the Table but is then
stolen back by the acrobat plug-in? Does waiting for 10 seconds before
setting the focus to the Table help? Does setting the focus back to the
Table in a display.asyncExec() block help?
Grant
"Rudi Ernst" <h1@xxxxxxxxxxxx> wrote in message
news:0ucbn2to6hrndogs97nf142nm2aa8lqvkp@xxxxxxxxxx
>
> Hello all,
>
> I'm working on an RCP-Application with different Views
> (WorkbenchPart). One View shows a list of PDF-Documentnames in a
> org.eclipse.swt.widgets.Table, another one displays such a
> PDF-Document via the SWT-BrowserWidget which uses the
> Acrobat Browser Plugin to show PDFs.
>
> The workflow is as follows:
>
> - Click on a PDF-Name in the table
> - Show the selected file in the Browser-View
> - Move the focus back to the Table in order to select the next
> document with the keyboard.
>
> My problem now is:
>
> When the Browser-Widget shows the PDF (setUrl(...)), this Widget gets
> the focus and never gives it back.
> No forceFocus, no setFocus gives the focus back to the Table. Now I
> had the idea to generate a MouseEvent to do
> a Click or Doubleclick on a TableRow per programm. I think I can
> create such a MouseEvent however how can I send it
> to my TableRow. Can I insert this event in an EventQueue or do I have
> access to any EventTables? No idea.
>
> Thanks
> Rudi
>