views:

230

answers:

1

I am working on an Eclipse RCP project which has detachable views. I would like to be able to put some text on the window border which surrounds the view once it is detached. Does anyone have any experience with this? Development environment is Eclipse 3.4 on Windows. THANKS.

A: 

I am not sure it is possible through the conventional update triggering a updateTitle():
If you take a look at the code of org.eclipse.ui.internal.DetachedWindow, you will see a disturbing method updateTitle():

private void updateTitle() {
    if (activePart != null) {
        // Uncomment to set the shell title to match the title of the active part
        // String text = activePart.getTitle();
        //
        // if (!text.equals(s.getText())) {
        //     s.setText(text);
        // }
    }
}

All commented!

VonC