Skip to main content

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: 100
Registered: September 2010
Senior 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:
" border="0" alt="
" />

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" border="0" alt="" />

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.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 Jun 22 23:07:31 GMT 2018

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

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

Back to the top