Setting the right editor title for the workbench [message #51853] |
Tue, 24 March 2009 09:47  |
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 12:54  |
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 12:54  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03525 seconds