Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 465646

Summary: Customized stack presentation for placeholder folder not working
Product: [RT] RAP Reporter: Georg Breitschopf <georg.breitschopf>
Component: WorkbenchAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.3   
Target Milestone: 3.0 M7   
Hardware: PC   
OS: Windows NT   
See Also: https://git.eclipse.org/r/46645
https://git.eclipse.org/c/rap/org.eclipse.rap.git/commit/?id=5ba24de74c6d5fa6cb08ab2c4e78d9050c2167ff
Whiteboard:

Description Georg Breitschopf CLA 2015-04-28 04:00:29 EDT
Customized stack presentation for placeholder folder not working. (Folder-)ID is not set for real container. Therefore, the corresponding stack presentation cannot be found by the interaction design implementation.

Proposed solution (will be provided via Gerrit):

org.eclipse.ui.internal.PageLayout#createPlaceholderFolder:

// Create the folder.
ContainerPlaceholder folder = new ContainerPlaceholder(null);
folder.setContainer(rootLayoutContainer);
ViewStack viewStack = new ViewStack(rootLayoutContainer.page);
viewStack.set
folder.setRealContainer(viewStack);
folder.setID(folderId);
addPart(folder, folderId, relationship, ratio, refId);
Comment 1 Georg Breitschopf CLA 2015-04-28 04:01:17 EDT
Sorry, here the correct code snippet:

// Create the folder.
ContainerPlaceholder folder = new ContainerPlaceholder(null);
folder.setContainer(rootLayoutContainer);
ViewStack viewStack = new ViewStack(rootLayoutContainer.page);
viewStack.setID(folderId);
folder.setRealContainer(viewStack);
folder.setID(folderId);
addPart(folder, folderId, relationship, ratio, refId);
Comment 2 Eclipse Genie CLA 2015-04-28 04:38:20 EDT
New Gerrit change created: https://git.eclipse.org/r/46645
Comment 4 Ivan Furnadjiev CLA 2015-05-02 04:26:27 EDT
Close as fixed.