org.eclipse.jface.internal.provisional.action.CoolBarManager2 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spotless-ext-greclipse Show documentation
Show all versions of spotless-ext-greclipse Show documentation
Groovy Eclipse's formatter bundled for Spotless
The newest version!
/*******************************************************************************
* 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 CoolBarManager
to implement ICoolBarManager2
*
*
* EXPERIMENTAL. 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.
*
*
* @since 3.2
*/
public class CoolBarManager2 extends CoolBarManager implements ICoolBarManager2 {
/**
* Creates a new cool bar manager with the default style. Equivalent to
* CoolBarManager(SWT.NONE)
.
*/
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 createControl
* 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
*/
@Override
public Control createControl2(Composite parent) {
return createControl(parent);
}
/**
* Returns the control for this manager.
*
* @return the control, or null
if none
* @since 3.2
*/
@Override
public Control getControl2() {
return getControl();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy