Search code examples
eclipse-rcpe4

Placeholders for parts doesn't honor the closeable flag?


I'm running into a strange issue in an application I'm developing using the Eclipse RCP platform.

In my model, I'm attempting to use Shared Elements in order to reuse parts between perspectives. I created a Label part and ensured that the Closeable flag was off.

Label part

I created a placeholder for this part and ensured that the same Closeable flag was also off for the placeholder.Label placeholder.

However, when I run my RCP application (with persisted state cleared, of course), my part has the close icon on it and can indeed be closed.

RCP application with placeholders

On the other hand, if I place the part directly within my part stack as follows, Label part directly under partstack

and leave the Closeable flag off, the part displays correctly without the close icon. RCP application without placeholder

How can I get the placeholders to honor the closeable flag? Or is this the intended behavior...?


Solution

  • This is supposed to work but doesn't. This is reported in Eclipse bug 400771.

    This is currently still open. The target for a fix is Eclipse 4.7 but I guess it has missed that as the first release candidate for 4.7 is already available without it.