/******************************************************************************* * Copyright (c) 2006-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.core.application.perspectives; import org.eclipse.swt.SWT; import org.eclipse.ui.IFolderLayout; import org.eclipse.ui.IPageLayout; import org.eclipse.ui.IPerspectiveFactory; import ch.elexis.core.ui.views.KompendiumView; import ch.elexis.core.ui.views.artikel.ArtikelView; /** * Diese Klasse erzeugt das Anfangslayout für die Funktion "Artikel" */ public class ArtikelPerspektive implements IPerspectiveFactory { public static final String ID = "ch.elexis.ArtikelPerspektive"; //$NON-NLS-1$ public void createInitialLayout(IPageLayout layout){ String editorArea = layout.getEditorArea(); layout.setEditorAreaVisible(false); layout.setFixed(false); IFolderLayout ifr = layout.createFolder("right", SWT.RIGHT, 1.0f, editorArea); //$NON-NLS-1$ ifr.addView(ArtikelView.ID); ifr.addView(KompendiumView.ID); } }