⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 icoolbarmanager2.java

📁 jfa2ce 源码帮助开发人员更好的理解运用
💻 JAVA
字号:
/******************************************************************************* * Copyright (c) 2006 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 * * Contributors: *     IBM Corporation - initial API and implementation *******************************************************************************/package org.eclipse.jface.internal.provisional.action;import org.eclipse.jface.action.IContributionItem;import org.eclipse.jface.action.ICoolBarManager;import org.eclipse.swt.widgets.Composite;import org.eclipse.swt.widgets.Control;/** * Extends <code>ICoolBarManager</code> to allow clients to be decoupled * from the actual kind of control used. *  * <p> * <strong>EXPERIMENTAL</strong>. This class or interface has been added as * part of a work in progress. There is a guarantee neither that this API will * work nor that it will remain the same. Please do not use this API without * consulting with the Platform/UI team. * </p> *  * @since 3.2 */public interface ICoolBarManager2 extends ICoolBarManager {    /**     * Creates and returns this manager's control. Does not create a     * new control if one already exists.     *      *      * @param parent     *            the parent control     * @return the control	 * @since 3.2     */    public Control createControl2(Composite parent);    /**     * Returns the bar control for this manager.     * 	 * <p>	 * <strong>EXPERIMENTAL</strong>. This class or interface has been added as	 * part of a work in progress. There is a guarantee neither that this API will	 * work nor that it will remain the same. Please do not use this API without	 * consulting with the Platform/UI team.	 * </p>     *       * @return the bar control, or <code>null</code> if none	 * @since 3.2     */    public Control getControl2();    /**     * Synchronizes the visual order of the cool items in the control with this     * manager's internal data structures. This method should be called before     * requesting the order of the contribution items to ensure that the order     * is accurate.     * <p>     * Note that <code>update()</code> and <code>refresh()</code> are     * converses: <code>update()</code> changes the visual order to match the     * internal structures, and <code>refresh</code> changes the internal     * structures to match the visual order.     * </p>     * 	 * <p>	 * <strong>EXPERIMENTAL</strong>. This class or interface has been added as	 * part of a work in progress. There is a guarantee neither that this API will	 * work nor that it will remain the same. Please do not use this API without	 * consulting with the Platform/UI team.	 * </p>     * 	 * @since 3.2     */    public void refresh();        /**	 * Disposes the resources for this manager.     * 	 * <p>	 * <strong>EXPERIMENTAL</strong>. This class or interface has been added as	 * part of a work in progress. There is a guarantee neither that this API will	 * work nor that it will remain the same. Please do not use this API without	 * consulting with the Platform/UI team.	 * </p>     *      * @since 3.2      */    public void dispose();    /**     * Restores the canonical order of this cool bar manager. The canonical     * order is the order in which the contribution items where added.     * 	 * <p>	 * <strong>EXPERIMENTAL</strong>. This class or interface has been added as	 * part of a work in progress. There is a guarantee neither that this API will	 * work nor that it will remain the same. Please do not use this API without	 * consulting with the Platform/UI team.	 * </p>     * 	 * @since 3.2     	 */    public void resetItemOrder();    /**     * Replaces the current items with the given items.     * Forces an update.     * 	 * <p>	 * <strong>EXPERIMENTAL</strong>. This class or interface has been added as	 * part of a work in progress. There is a guarantee neither that this API will	 * work nor that it will remain the same. Please do not use this API without	 * consulting with the Platform/UI team.	 * </p>     *      * @param newItems the items with which to replace the current items     * @since 3.2	 */    public void setItems(IContributionItem[] newItems);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -