IDEA.setTitle() limitation ?

Is it possible to replace IDEA title text?

I tried - see code below - to replace the title with
"new Title"

but IDEA titlebar keeps showing :
"new title - C:\dev\Projects\dummy\src\tk\Dummy.java - IntelliJ IDEA
3.0"


Is there a way?

Alain Ravet

-


Code :
-



private void changeTitle ( Editor i_editor )
{
Container previous = null ,
comp = i_editor.getContentComponent() ;

while (null != comp){
System.out.println( "comp = " + comp );
previous = comp ;
comp = comp.getParent();
}
Frame rootPane = ( Frame ) previous;

rootPane.setTitle("new title");
}

4 comments
Comment actions Permalink

But why do you need to change IDEA title?

--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"

"Alain Ravet" <alain.ravet.list@wanadoo.be> wrote in message
news:asohv0$orb$1@is.intellij.net...

Is it possible to replace IDEA title text?

>

I tried - see code below - to replace the title with
"new Title"

>

but IDEA titlebar keeps showing :
"new title - C:\dev\Projects\dummy\src\tk\Dummy.java - IntelliJ IDEA
3.0"

>
>

Is there a way?

>

Alain Ravet

>

--------
Code :
--------

>

private void changeTitle ( Editor i_editor )
{
Container previous = null ,
comp = i_editor.getContentComponent() ;

>

while (null != comp){
System.out.println( "comp = " + comp );
previous = comp ;
comp = comp.getParent();
}
Frame rootPane = ( Frame ) previous;

>

rootPane.setTitle("new title");
}

>


0
Comment actions Permalink

Valentin Kipiatkov wrote:
> But why do you need to change IDEA title?

Does it matter?

I'm writing a plug-in, that displays the current to-do task + some other
info in the title bar.

Alain Ravet

0
Comment actions Permalink

I suppose it matters because if the capability is not there, they might or might
not make the engineering effort to put it there, depending on the perceived
usefulness. I assume IDEA will never be exactly like Eclipse, so there
will always be things a plugin simply cannot do.

Alain Ravet wrote:

Valentin Kipiatkov wrote:
> But why do you need to change IDEA title?

Does it matter?

I'm writing a plug-in, that displays the current to-do task + some other
info in the title bar.

Alain Ravet



--

Erb

==============================================================
"Most of you are familiar with the virtues of a programmer.
There are three, of course: laziness, impatience, and hubris."
- Larry Wall
==============================================================

0
Comment actions Permalink

Yes, I was asking this to better estimate priority of adding such
possibility into Open API.

--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"

"Erb" <dont@evenbother.com> wrote in message
news:asqejs$r2p$1@is.intellij.net...

I suppose it matters because if the capability is not there, they might or

might

not make the engineering effort to put it there, depending on the

perceived

usefulness. I assume IDEA will never be exactly like Eclipse, so there
will always be things a plugin simply cannot do.

>

Alain Ravet wrote:

Valentin Kipiatkov wrote:
> But why do you need to change IDEA title?

>

Does it matter?

>

I'm writing a plug-in, that displays the current to-do task + some other
info in the title bar.

>

Alain Ravet

>

>
>

--

>

Erb

>

==============================================================
"Most of you are familiar with the virtues of a programmer.
There are three, of course: laziness, impatience, and hubris."
- Larry Wall
==============================================================

>


0

Please sign in to leave a comment.