/******************************************************************************* * Copyright (c) 2007, 2010 Innoopract Informationssysteme GmbH. * 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: * Innoopract Informationssysteme GmbH - initial API and implementation * EclipseSource - ongoing development ******************************************************************************/ package org.eclipse.swt.internal.widgets.combokit; import org.eclipse.swt.graphics.Rectangle; import org.eclipse.swt.internal.widgets.controlkit.ControlThemeAdapter; import org.eclipse.swt.widgets.Control; public final class ComboThemeAdapter extends ControlThemeAdapter { public Rectangle getFieldPadding( final Control control ) { return getCssBoxDimensions( "Combo-Field", "padding", control ); } public int getButtonWidth( final Control control ) { return getCssDimension( "Combo-Button", "width", control ); } }