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

📄 coolbarmanager2.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.CoolBarManager;import org.eclipse.swt.widgets.Composite;import org.eclipse.swt.widgets.Control;import org.eclipse.swt.widgets.CoolBar;/** * Extends <code>CoolBarManager</code> to implement <code>ICoolBarManager2</code> *  * <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 class CoolBarManager2 extends CoolBarManager implements ICoolBarManager2 {    /**     * Creates a new cool bar manager with the default style. Equivalent to     * <code>CoolBarManager(SWT.NONE)</code>.     */    public CoolBarManager2() {        super();    }    /**     * Creates a cool bar manager for an existing cool bar control. This     * manager becomes responsible for the control, and will dispose of it when     * the manager is disposed.     *      * @param coolBar     *            the cool bar control     */    public CoolBarManager2(CoolBar coolBar) {        super(coolBar);    }    /**     * Creates a cool bar manager with the given SWT style. Calling <code>createControl</code>     * will create the cool bar control.     *      * @param style     *            the cool bar item style; see     *            {@link org.eclipse.swt.widgets.CoolBar CoolBar}for for valid     *            style bits     */    public CoolBarManager2(int style) {       super(style);    }        /**     * Creates and returns this manager's cool bar control. Does not create a     * new control if one already exists.     *      * @param parent     *            the parent control     * @return the cool bar control	 * @since 3.2     */    public Control createControl2(Composite parent) {        return createControl(parent);    }        /**     * Returns the control for this manager.     *      * @return the control, or <code>null</code> if none	 * @since 3.2     */    public Control getControl2() {        return getControl();    }}

⌨️ 快捷键说明

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