Getting Tab File Location [message #512381] |
Thu, 04 February 2010 15:20  |
Eclipse User |
|
|
|
Hi,
I have a GMF RCP editor running. In my applicatino there can be multiple tabs for different files which I can switch between (each tab will say the name of the file and if I hover over it I can see the file location).
I've set up a SWT interface that, when opened, reads in the file location of what ever tab is active.
How might I do that?
Thanks,
F
(Not sure if this is a RCP issue, please point me to the correct location if I'm in the wrong place)
|
|
|
Re: Getting Tab File Location [message #518385 is a reply to message #512381] |
Wed, 03 March 2010 13:00  |
Eclipse User |
|
|
|
Hi Fred,
You can create a selection listener that places the currently active file
into some static field of a well know class. Then your SWT thing can pick it
up when it gets activated. Also you can ask the workbench for the current
active selection.
--
Best Regards,
Wim Jongman
-- Press CTRL-ALT-DEL to continue ...
(Eclipse Old Skool Quote Service)
> Hi,
>
> I have a GMF RCP editor running. In my applicatino there can be multiple
tabs for different files which I can switch between (each tab will say the
name of the file and if I hover over it I can see the file location).
>
> I've set up a SWT interface that, when opened, reads in the file location
of what ever tab is active.
>
> How might I do that?
>
> Thanks,
>
> F
>
> (Not sure if this is a RCP issue, please point me to the correct location
if I'm in the wrong place)
|
|
|
Powered by
FUDForum. Page generated in 0.03215 seconds