Skip to main content
summaryrefslogtreecommitdiffstats
blob: eebe886ec46dda87b0d84d21a3bc0da135682b43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*******************************************************************************
 * Copyright (c) 2006, 2008 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.debug.internal.ui.viewers.model.provisional;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.graphics.FontData;
import org.eclipse.swt.graphics.RGB;

/**
 * Context sensitive label update request for an element.
 * <p>
 * Clients are not intended to implement this interface.
 * </p> 
 * @since 3.3
 */
public interface ILabelUpdate extends IViewerUpdate {
		
	/**
	 * Returns the id's of the columns which are to be updated
	 * or <code>null</code> if none.  Note, these columns may be different
	 * than the visible columns in the view which are returned by 
	 * {@link IPresentationContext#getColumns()}.
	 * 
	 * @return column id's or <code>null</code>
	 */
	public String[] getColumnIds();

	/**
	 * Sets the text of the label of the specified column. Cannot be <code>null</code>.
	 * 
	 * @param text
	 * @param columnIndex column index (0 when no columns)
	 */
    public void setLabel(String text, int columnIndex);
    
    /**
     * Sets the font of the label.
     * 
     * @param fontData
     * @param columnIndex column index (0 when no columns)
     */
    public void setFontData(FontData fontData, int columnIndex);
    
    /**
     * Sets the image of the label.
     * 
     * @param image
     * @param columnIndex column index (0 when no columns)
     */
    public void setImageDescriptor(ImageDescriptor image, int columnIndex);
    
    /**
     * Sets the foreground color of the label.
     * 
     * @param foreground
     * @param columnIndex column index (0 when no columns)
     */
    public void setForeground(RGB foreground, int columnIndex);
    
    /**
     * Sets the background color of the label.
     * 
     * @param background
     * @param columnIndex column index (0 when no columns)
     */
    public void setBackground(RGB background, int columnIndex);
}

Back to the top