Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » changing a viewPart name
changing a viewPart name [message #499483] Sun, 22 November 2009 23:37 Go to next message
Amirix  is currently offline Amirix Friend
Messages: 4
Registered: November 2009
Junior Member
Hi,

Does anyone have a clue about how to rename viewPart name in a direct way in the application (the functionaity of setPartName but via a mouse click or similar).

Thanks,
Amir
Re: changing a viewPart name [message #499615 is a reply to message #499483] Mon, 23 November 2009 14:41 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

There's no "change this part name" command, if that's what you are asking.

But you could easily write one yourself.

PW


Re: changing a viewPart name [message #499748 is a reply to message #499615] Mon, 23 November 2009 22:28 Go to previous messageGo to next message
Amirix  is currently offline Amirix Friend
Messages: 4
Registered: November 2009
Junior Member
Thanks for the input.
Is it possible then to access the default PartView popup menu and add a "rename" action there?
Re: changing a viewPart name [message #499789 is a reply to message #499748] Tue, 24 November 2009 07:21 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
Amirix wrote:
> Thanks for the input.
> Is it possible then to access the default PartView popup menu and add a
> "rename" action there?

What do you consider as the "default PartView popup"? View part context
menus are defined for each view part individually.

HTH & Greetings from Bremen,

Daniel Krügler
Re: changing a viewPart name [message #499802 is a reply to message #499789] Tue, 24 November 2009 09:07 Go to previous messageGo to next message
Amirix  is currently offline Amirix Friend
Messages: 4
Registered: November 2009
Junior Member
When I "right-click" on the view part tab I have a default popup/context menu with various actions (Maximize, Minimize, Close, Detached,...).
I wish to access it and add a new action (aka "Rename"). I have been trying to do that but for no avail.
Is this possible and if so, how?

Thanks
Re: changing a viewPart name [message #499919 is a reply to message #499802] Tue, 24 November 2009 14:24 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

That's the "system menu", and you cannot access it unless you write the presentation yourself (and that's a lot of complex code Smile

ex: org.eclipse.ui.internal.presentations.util.StandardViewSyste mMenu

PW


Re: changing a viewPart name [message #499954 is a reply to message #499919] Tue, 24 November 2009 15:12 Go to previous message
Amirix  is currently offline Amirix Friend
Messages: 4
Registered: November 2009
Junior Member
Many thanks for your help.

Amir
Previous Topic:Lost in a maze.
Next Topic:Nice XML editor for RCP?
Goto Forum:
  


Current Time: Mon Dec 22 01:25:14 GMT 2014

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

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