I created a IFolderLayout in my perspective, when user close all views in that folder, the folder itself will be closed too. bu t I want it to be remained there.
layout.setEditorAreaVisible(false);
IFolderLayout functionsViewFolder = layout.createFolder("functionsViewsFolder", IPageLayout.RIGHT, 0.2f, layout.getEditorArea());
functionsViewFolder.addPlaceholder(FunctionView.ID + ":" + FunctionView.SECONDARY_ID + "*");
Override this in your WorkbenchWindowAdvisor
by default, this is returned as false and hence the folder closes when all the views in the folder are closed.
Override this method and either restrict to a particular folder /perspective or return true as above to force this behaviour to all perspectives/folder