Skip to main content


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 20:20 Go to next message
Fred  is currently offline Fred Friend
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 18:00 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 423
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: Thu Apr 25 23:42:57 GMT 2024

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

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

Back to the top