blob: fe34c603b6d6f56143e9bfe0a7a64cf2669be223 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009 Remy Chi Jian Suen 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:
* Remy Chi Jian Suen <remy.suen@gmail.com> - initial API and implementation
******************************************************************************/
package org.eclipse.e4.ui.tests.css.swt;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
public class LabelTextTransformTest extends TextTransformTest {
protected Control createControl(Composite parent) {
return new Label(parent, SWT.LEAD);
}
protected String getWidgetName() {
return "Label";
}
protected String getText(Control control) {
return ((Label) control).getText();
}
protected void setText(Control control, String string) {
((Label) control).setText(string);
}
}