Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » layout problem with intro page(welcome page brokes the layouy)
layout problem with intro page [message #650332] Mon, 24 January 2011 12:41
Luiz E. is currently offline Luiz E.Friend
Messages: 97
Registered: September 2010
Member
hi people!
there's something wrong with my layout!
when i open my app, the welcome page is shown. and then, i open an view, and on the view, i open an editor. like this:

http://i.imgur.com/Wca8z.png
" border="0" alt="
http://i.imgur.com/Wca8z.png
" />

as you can see, the editor stays on left, which is not cool for me.
but when i close the welcome page, and THEN open the view, and on the view, open the editor, the layout goes like

http://i.imgur.com/sZJoM.png" border="0" alt="
http://i.imgur.com/sZJoM.png" />

and this is how i want to be the default behavior.
why this happen and how to fix it?
if it helps, my perspective code

/** Top folder's id. */
	public static final String FI_TOP = GermantechActivator.PLUGIN_ID + "topFolder";
	/** Top folder's id. */
	public static final String FI_BOTTOM = GermantechActivator.PLUGIN_ID + ".bottomFolder";

	private IPageLayout layout;

	public void createInitialLayout(IPageLayout layout) {
		this.layout = layout;
		
		String editorAreaId = layout.getEditorArea();
		layout.setEditorAreaVisible(false);
		layout.setFixed(false);

		layout.createPlaceholderFolder(FI_TOP, IPageLayout.TOP, 0.35f, editorAreaId);
		layout.createPlaceholderFolder(FI_BOTTOM, IPageLayout.BOTTOM,0.60f, editorAreaId);
		
		IPartService partService = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getPartService();
		partService.addPartListener(new PartListenerAdapter());
	}

Previous Topic:Base extension point availability question?
Next Topic:Viewing Equinox log files
Goto Forum:
  


Current Time: Fri Nov 28 11:35:12 GMT 2014

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

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