[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Attach view

Hi Daniel,

thanks for your answer.

I tried to use the extension point, but this did not solve my problem. When 
I detach my view and then re-attach it, it is not located at the position I 
defined in my layout.

The extension point looks like this.

<extension

point="org.eclipse.ui.perspectiveExtensions">

<perspectiveExtension

targetID="myPerspectiveId">

<view

closeable="false"

id="org.eclipse.ui.views.PropertySheet"

moveable="true"

ratio="0.5"

relationship="bottom"

relative="org.eclipse.ui.editorss"

visible="true">

</view>

</perspectiveExtension>

</extension>

Any idea?

Greetz,
Carsten



"Daniel Krügler" <dsp@xxxxxxx> schrieb im Newsbeitrag 
news:f6vp7f$9s4$1@xxxxxxxxxxxxxxxxxxxx
> Carsten Spieker wrote:
>> Unfortunately this trial does not work as I tried.
>
> You probably have to ensure that your runtime workspace is clean.
> Perspective settings are typically adminstrated in some lazy
> manner. Indeed the method createInitialLayout of your perspective
> factory is only called once, if you have setSaveAndRestore enabled.
> Alternatively, if your RCP app publishes the "Reset Perspective"
> action, a possible fix is to invoke this action.
>
> Generally I recommend to use the ext.pt.
> "org.eclipse.ui.perspectiveExtensions" to perform this kind of
> perspective specific layouting. Just add the element
> "perspectiveExtension" (and specify it's targetId, which
> corresponds to a given perspective factory id), add a subelement
> "view" and there you can practically all view specific layout
> settings.
>
> Greetings from Bremen,
>
> Daniel Krügler