1 /******************************************************************************* 2 * Copyright (c) 2000, 2006 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; 12 13 /** 14 * The primary interface between a view part and the workbench. 15 * <p> 16 * The workbench exposes its implemention of view part sites via this interface, 17 * which is not intended to be implemented or extended by clients. 18 * </p> 19 */ 20 public interface IViewSite extends IWorkbenchPartSite { 21 22 /** 23 * Returns the action bars for this part site. 24 * Views have exclusive use of their site's action bars. 25 * 26 * @return the action bars 27 */ 28 public IActionBars getActionBars(); 29 30 /** 31 * Returns the secondary id for this part site's part, 32 * or <code>null</code> if it has none. 33 * 34 * @see IWorkbenchPage#showView(String, String, int) 35 * @since 3.0 36 */ 37 public String getSecondaryId(); 38 } 39