1 /******************************************************************************* 2 * Copyright (c) 2005 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.ui.part; 12 13 import org.eclipse.jface.window.Window; 14 import org.eclipse.swt.SWT; 15 16 /** 17 * The IWorkbenchPartOrientation is the interface that defines the orientation 18 * of the part. If a type does not implement this interface an orientation of 19 * SWT.NONE will be assumed. 20 * 21 * @see org.eclipse.swt.SWT#RIGHT_TO_LEFT 22 * @see org.eclipse.swt.SWT#LEFT_TO_RIGHT 23 * @see org.eclipse.swt.SWT#NONE 24 * @see Window#getDefaultOrientation() 25 * @since 3.1 26 */ 27 public interface IWorkbenchPartOrientation { 28 /** 29 * Return the orientation of this part. 30 * 31 * @return int SWT#RIGHT_TO_LEFT or SWT#LEFT_TO_RIGHT 32 * @see Window#getDefaultOrientation() 33 * @see SWT#RIGHT_TO_LEFT 34 * @see SWT#LEFT_TO_RIGHT 35 * @see Window#getDefaultOrientation() 36 */ 37 public int getOrientation(); 38 } 39