Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Setting the right editor title for the workbench
Setting the right editor title for the workbench [message #51853] Tue, 24 March 2009 13:47 Go to next message
Eclipse User
Originally posted by: cold.phusion.gmail.com

Hi,

I know this may sound like a trivial question, but I've been trying this
for quite some time and can't seem to find a proper solution.
I have a custom editor and I want to set the opened element as the title
of the whole workbench (i.e. of the whole Eclipse shell). Currently the
title reads "<Perspective> - - Eclipse Platform". I have an EditorInput
that implements IEditorInput and the getName() method, respectively. I
thought this name would appear in the title, but it does not. Is this
the right procedure to do it and if so - are there any circumstances,
under which the title would be ignored?
To make it a bit clearer - I'm not building a standalone RCP app and I
don't want to set a custom title like "This is my app v.123". I just
want to set whatever property needs to be set to show the correct
default title :)

Cheers,
Alex
Re: Setting the right editor title for the workbench [message #53091 is a reply to message #51853] Wed, 01 April 2009 16:54 Go to previous message
Eclipse User
Originally posted by: cold.phusion.gmail.com

In case someone else is also stuck on this - you have to implement
getToolTipText() in your IEditorInput ... o_O ...

Cheers,
Alex

Aleksandar Shterev wrote:
> Hi,
>
> I know this may sound like a trivial question, but I've been trying this
> for quite some time and can't seem to find a proper solution.
> I have a custom editor and I want to set the opened element as the title
> of the whole workbench (i.e. of the whole Eclipse shell). Currently the
> title reads "<Perspective> - - Eclipse Platform". I have an EditorInput
> that implements IEditorInput and the getName() method, respectively. I
> thought this name would appear in the title, but it does not. Is this
> the right procedure to do it and if so - are there any circumstances,
> under which the title would be ignored?
> To make it a bit clearer - I'm not building a standalone RCP app and I
> don't want to set a custom title like "This is my app v.123". I just
> want to set whatever property needs to be set to show the correct
> default title :)
>
> Cheers,
> Alex
Re: Setting the right editor title for the workbench [message #594437 is a reply to message #51853] Wed, 01 April 2009 16:54 Go to previous message
Alex Shterev is currently offline Alex Shterev
Messages: 20
Registered: April 2010
Junior Member
In case someone else is also stuck on this - you have to implement
getToolTipText() in your IEditorInput ... o_O ...

Cheers,
Alex

Aleksandar Shterev wrote:
> Hi,
>
> I know this may sound like a trivial question, but I've been trying this
> for quite some time and can't seem to find a proper solution.
> I have a custom editor and I want to set the opened element as the title
> of the whole workbench (i.e. of the whole Eclipse shell). Currently the
> title reads "<Perspective> - - Eclipse Platform". I have an EditorInput
> that implements IEditorInput and the getName() method, respectively. I
> thought this name would appear in the title, but it does not. Is this
> the right procedure to do it and if so - are there any circumstances,
> under which the title would be ignored?
> To make it a bit clearer - I'm not building a standalone RCP app and I
> don't want to set a custom title like "This is my app v.123". I just
> want to set whatever property needs to be set to show the correct
> default title :)
>
> Cheers,
> Alex
Previous Topic:Get the path of the current document
Next Topic:Optional plugins inside a feature?
Goto Forum:
  


Current Time: Sat Oct 25 16:21:18 GMT 2014

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

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