/******************************************************************************* * Copyright (c) 2000, 2007 IBM Corporation and others. * 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 * *******************************************************************************/ package org.eclipse.dltk.ui; import org.eclipse.jface.viewers.TreeViewer; import org.eclipse.ui.IViewPart; /** * The standard Packages view presents a Script-centric view of the workspace. * Within Script projects, the resource hierarchy is organized into Script packages * as described by the project's buildpath. Note that this view shows both Script * elements and ordinary resources. * <p> * This interface is not intended to be implemented by clients. * </p> * * @see ScriptUI#ID_PACKAGES */ public interface IScriptExplorerViewPart extends IViewPart { /** * Selects and reveals the given element in this packages view. * The tree will be expanded as needed to show the element. * * @param element the element to be revealed */ void selectAndReveal(Object element); /** * Returns the TreeViewer shown in the Packages view. * * @return the tree viewer used in the Packages view * * */ TreeViewer getTreeViewer(); /** * Returns whether this Packages view's selection automatically tracks the active editor. * * @return <code>true</code> if linking is enabled, <code>false</code> if not * */ boolean isLinkingEnabled(); /** * Sets whether this Packages view's selection automatically tracks the active editor. * * @param enabled <code>true</code> to enable, <code>false</code> to disable * */ void setLinkingEnabled(boolean enabled); }