Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Getting Tab File Location
Getting Tab File Location [message #512381] Thu, 04 February 2010 15:20 Go to next message
Fred  is currently offline Fred
Messages: 14
Registered: November 2009
Junior Member
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 Go to previous message
Wim Jongman is currently offline Wim Jongman
Messages: 418
Registered: July 2009
Senior Member
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)
Previous Topic:Workspace check
Next Topic:help understanding the IPageLayout ratio
Goto Forum:
  


Current Time: Sat Aug 02 00:37:35 EDT 2014

Powered by FUDForum. Page generated in 0.02284 seconds