All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.ui.IPlaceholderFolderLayout Maven / Gradle / Ivy

There is a newer version: 3.133.0
Show newest version
/*******************************************************************************
 * Copyright (c) 2000, 2015 IBM Corporation and others.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *     Chris Gross [email protected] Bug 107443
 *******************************************************************************/
package org.eclipse.ui;

/**
 * An IPlaceholderFolderLayout is used to define the initial
 * view placeholders within a folder.
 * The folder itself is contained within an IPageLayout.
 * 

* This interface is not intended to be implemented by clients. *

* * @see IPageLayout#createPlaceholderFolder * @since 2.0 * @noimplement This interface is not intended to be implemented by clients. */ public interface IPlaceholderFolderLayout { /** * Adds a view placeholder to this folder. * A view placeholder is used to define the position of a view before the view * appears. Initially, it is invisible; however, if the user ever opens a view * whose compound id matches the placeholder, the view will appear at the same * location as the placeholder. * See the {@link IPageLayout} type documentation for more details about compound ids. * If the placeholder contains wildcards, it remains in the layout, otherwise * it is replaced by the view. * If the primary id of the placeholder has no wildcards, it must refer to a view * contributed to the workbench's view extension point * (named "org.eclipse.ui.views"). * * @param viewId the compound view id (wildcards allowed) */ void addPlaceholder(String viewId); /** * Returns the property with the given id or null. Folder * properties are an extensible mechanism for perspective authors to * customize the appearance of view stacks. The list of customizable * properties is determined by the presentation factory. * * @param id * Must not be null. * @return property value, or null if the property is not * set. * @since 3.3 */ String getProperty(String id); /** * Sets the given property to the given value. Folder properties are an * extensible mechanism for perspective authors to customize the appearance * of view stacks. The list of customizable properties is determined by the * presentation factory. *

* These folder properties are intended to be set during * IPerspectiveFactory#createInitialLayout. Any subsequent * changes to property values after this method completes will not fire * change notifications and will not be reflected in the presentation. *

* * @param id * property id. Must not be null. * @param value * property value. null will clear the property. * @since 3.3 */ void setProperty(String id, String value); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy