blob: 44556b5d3514e7aceadc2fd733d0d5f94f636937 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008, 2013 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0, which accompanies this distribution
* and is available at https://www.eclipse.org/legal/epl-2.0/.
*
* Contributors:
* Oracle - initial API and implementation
******************************************************************************/
package org.eclipse.jpt.common.ui.internal.swt.bindings;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.forms.widgets.Hyperlink;
/**
* Adapt a hyperlink to the <em>label</em> interface (text-only support).
* @see Hyperlink
*/
final class HyperlinkLabelAdapter
extends ControlLabelAdapter<Hyperlink>
{
public HyperlinkLabelAdapter(Hyperlink hyperlink) {
super(hyperlink);
}
@Override
protected void setImage_(Image image) {
// NOP
}
@Override
protected void setText_(String text) {
this.control.setText(text);
}
}