/******************************************************************************* * Copyright (c) 2007-2009, G. Weirich and Elexis * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * G. Weirich - initial implementation * *******************************************************************************/ package ch.elexis.notes; import org.eclipse.swt.SWT; import org.eclipse.ui.IPageLayout; import org.eclipse.ui.IPerspectiveFactory; public class NotesPerspective implements IPerspectiveFactory { public void createInitialLayout(IPageLayout layout){ String editorArea = layout.getEditorArea(); layout.setEditorAreaVisible(false); layout.setFixed(true); layout.addView(NotesView.ID, SWT.RIGHT, 0.9f, editorArea); } }