[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Re: Attach view
|
Well, maybe I did not explain my problem in detail.
I set "setSaveAndRestore" to "false". The scenario is that I have a
completely clean runtime workspace. When I open my perspective it is
correctly built up with the code from "createInitialLayout". Then I detach a
view which is e.g. in a folder below the editor area. If I close or
re-attach the view it is NOT put to the folder below the editor area (where
it came from) but to a folder on the right side of the editor area.
Now I am searching for the reason for this behaviour and hopefully for a way
to force the application to re-attach it to its "home" folder.
I apologize if I did not explain this in this detail before. Maybe the
problem would have been clearer.
Greetz,
Carsten
"Daniel Krügler" <dsp@xxxxxxx> schrieb im Newsbeitrag
news:f7hveh$lat$1@xxxxxxxxxxxxxxxxxxxx
> Carsten Spieker wrote:
>> 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.
>
> I'm not sure whether I understand you correctly or not but let
> my explain one important issue again: *If* you have setSaveAndRestore
> enabled, the most recent view setting will win. Either set this flag
> to false (and restart the application with a *clean* runtime workspace)
> or just ensure that your runtime workspace is clean before testing
> the settings (The action "Reset perspectiv"e has the same effect in this
> regard). If you rearrange views and perspectives during runtime
> and exit the RCP app, the next time you will start with this exactly this
> previous layout *if* setSaveAndRestore(true) was set, otherwise
> your app will always invoke the code inside createInitialLayout of
> your starting perspective.
>
> HTH,
>
> Daniel Krügler