1
/*******************************************************************************
2
* Copyright (c) 2007 Wind River Systems and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* Wind River Systems - initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.dsf.ui.viewmodel.properties;
15
import org.eclipse.core.runtime.IStatus;
16
import org.eclipse.debug.internal.ui.viewers.model.provisional.ILabelUpdate;
17
import org.eclipse.jface.resource.JFaceResources;
18
import org.eclipse.swt.graphics.FontData;
21
* The font attribute of a label.
24
* @see LabelColumnInfo
25
* @see PropertiesBasedLabelProvider
29
public class LabelFont extends LabelAttribute {
30
private static final FontData DEFAULT_FONT = JFaceResources.getDefaultFontDescriptor().getFontData()[0];
33
* The font data of this attribute.
35
private FontData fFontData;
41
public LabelFont(FontData fontData) {
45
public FontData getFontData() {
49
public void setFontData(FontData fontData) {
54
public void updateAttribute(ILabelUpdate update, int columnIndex, IStatus status, Map<String, Object> properties) {
55
update.setFontData(getFontData(), columnIndex);
b'\\ No newline at end of file'