Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » FolderLayout / PartStack stay open in compatibility mode
FolderLayout / PartStack stay open in compatibility mode [message #1269055] Tue, 11 March 2014 10:18 Go to next message
Matthias F is currently offline Matthias FFriend
Messages: 20
Registered: June 2011
Junior Member
I am running an 3.X application in Luna with compat mode and having a issue with a FolderLayout.
The folder is initially empty and parts can be open and closed in it. When starting the app the whole folder is missing (another view takes all the space). When I open one part it the folder gets visible. When the last part is closed, the folder gets invisble again.
In 3.x this worked fine, the folder was open on start up and stayed open all the time.
It basically should work like the editor stack but with viewparts.

In E4 the noautocollaps tag does exactly this. But how can I achieve this in compat mode?

Thanks,
Matthias
Re: FolderLayout / PartStack stay open in compatibility mode [message #1269059 is a reply to message #1269055] Tue, 11 March 2014 10:24 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You are talking about the durable attribute? IIRC this not worked in
reliable in 3.x either but was damn easy to get working in e4.

Maybe the compat layer does not set the tag appropriately?

Tom

On 11.03.14 11:18, Matthias F wrote:
> I am running an 3.X application in Luna with compat mode and having a
> issue with a FolderLayout.
> The folder is initially empty and parts can be open and closed in it.
> When starting the app the whole folder is missing (another view takes
> all the space). When I open one part it the folder gets visible. When
> the last part is closed, the folder gets invisble again.
> In 3.x this worked fine, the folder was open on start up and stayed open
> all the time.
> It basically should work like the editor stack but with viewparts.
>
> In E4 the noautocollaps tag does exactly this. But how can I achieve
> this in compat mode?
>
> Thanks,
> Matthias
Re: FolderLayout / PartStack stay open in compatibility mode [message #1269128 is a reply to message #1269059] Tue, 11 March 2014 12:29 Go to previous messageGo to next message
Matthias F is currently offline Matthias FFriend
Messages: 20
Registered: June 2011
Junior Member
Yes, in 3.x one did override the isDurableFolder Method in the WorkbenchWindowAdviser. Strangely this wasn't done in our application (3.2) but did work correctly. However this also does not work when in compat mode. The method does not seem to be called from anywhere in the Luna org.eclipse.ui.workbench bundle.

I just tried to create the stack with visible=true in the ModeledPageLayout, so the stack is visble from the start. But I noticed that the views are opened in a new folder and not the existing one. The folder has a placeholder with a wildcard '*'.
Re: FolderLayout / PartStack stay open in compatibility mode [message #1269146 is a reply to message #1269128] Tue, 11 March 2014 12:58 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Then I think you should file a bug against Platform/UI to respect the
setting!

Tom

On 11.03.14 13:29, Matthias F wrote:
> Yes, in 3.x one did override the isDurableFolder Method in the
> WorkbenchWindowAdviser. Strangely this wasn't done in our application
> (3.2) but did work correctly. However this also does not work when in
> compat mode. The method does not seem to be called from anywhere in the
> Luna org.eclipse.ui.workbench bundle.
>
> I just tried to create the stack with visible=true in the
> ModeledPageLayout, so the stack is visble from the start. But I noticed
> that the views are opened in a new folder and not the existing one. The
> folder has a placeholder with a wildcard '*'.
Re: FolderLayout / PartStack stay open in compatibility mode [message #1269208 is a reply to message #1269146] Tue, 11 March 2014 14:22 Go to previous message
Matthias F is currently offline Matthias FFriend
Messages: 20
Registered: June 2011
Junior Member
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=430111
Previous Topic:workbench.xmi not updated?
Next Topic:save state of navigation history on close of workbench
Goto Forum:
  


Current Time: Thu Apr 18 03:38:10 GMT 2024

Powered by FUDForum. Page generated in 0.02632 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top