org.eclipse.cdt.ui
Class CElementLabelProvider

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.jface.viewers.LabelProvider
          extended by org.eclipse.cdt.ui.CElementLabelProvider
All Implemented Interfaces:
org.eclipse.jface.viewers.IBaseLabelProvider, org.eclipse.jface.viewers.ILabelProvider

public class CElementLabelProvider
extends org.eclipse.jface.viewers.LabelProvider

The label provider for the c model elements.


Field Summary
static int SHOW_BASICS
          Constant (value 0) indicating that the label should show the basic images only.
static int SHOW_DEFAULT
           
static int SHOW_EXCEPTION
          Flag (bit mask) indicating that method label include thrown exception.
static int SHOW_OVERLAY_ICONS
          Flag (bit mask) indicating that the label should include overlay icons for element type and modifiers.
static int SHOW_PARAMETERS
          Flag (bit mask) indicating that method label include method parameter types.
static int SHOW_POST_QUALIFIED
          Flag (bit mask) indicating that Complation Units, Class Files, Types, Declarations and Members should be rendered qualified.
static int SHOW_QUALIFIED
          Flag (bit mask) indicating that Complation Units, Class Files, Types, Declarations and Members should be rendered qualified.
static int SHOW_RETURN_TYPE
          Flag (bit mask) indicating that methods labels include the method return type.
static int SHOW_SMALL_ICONS
          Flag (bit mask) indicating that the label should show the icons with no space reserved for overlays.
 
Constructor Summary
CElementLabelProvider()
           
CElementLabelProvider(int flags)
           
 
Method Summary
 void dispose()
           
 org.eclipse.swt.graphics.Image getImage(java.lang.Object element)
           
 int getImageFlags()
          Gets the image flags.
 java.lang.String getText(java.lang.Object element)
           
 int getTextFlags()
          Gets the text flags.
 
Methods inherited from class org.eclipse.jface.viewers.LabelProvider
addListener, isLabelProperty, removeListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHOW_RETURN_TYPE

public static final int SHOW_RETURN_TYPE
Flag (bit mask) indicating that methods labels include the method return type. (appended)

See Also:
Constant Field Values

SHOW_PARAMETERS

public static final int SHOW_PARAMETERS
Flag (bit mask) indicating that method label include method parameter types.

See Also:
Constant Field Values

SHOW_EXCEPTION

public static final int SHOW_EXCEPTION
Flag (bit mask) indicating that method label include thrown exception.

See Also:
Constant Field Values

SHOW_SMALL_ICONS

public static final int SHOW_SMALL_ICONS
Flag (bit mask) indicating that the label should show the icons with no space reserved for overlays.

See Also:
Constant Field Values

SHOW_OVERLAY_ICONS

public static final int SHOW_OVERLAY_ICONS
Flag (bit mask) indicating that the label should include overlay icons for element type and modifiers.

See Also:
Constant Field Values

SHOW_QUALIFIED

public static final int SHOW_QUALIFIED
Flag (bit mask) indicating that Complation Units, Class Files, Types, Declarations and Members should be rendered qualified. Examples: java.lang.String, java.util.Vector.size()

Since:
2.0
See Also:
Constant Field Values

SHOW_POST_QUALIFIED

public static final int SHOW_POST_QUALIFIED
Flag (bit mask) indicating that Complation Units, Class Files, Types, Declarations and Members should be rendered qualified. The qualifcation is appended Examples: String - java.lang, size() - java.util.Vector

Since:
2.0
See Also:
Constant Field Values

SHOW_BASICS

public static final int SHOW_BASICS
Constant (value 0) indicating that the label should show the basic images only.

See Also:
Constant Field Values

SHOW_DEFAULT

public static final int SHOW_DEFAULT
Constructor Detail

CElementLabelProvider

public CElementLabelProvider()

CElementLabelProvider

public CElementLabelProvider(int flags)
Method Detail

getText

public java.lang.String getText(java.lang.Object element)
Specified by:
getText in interface org.eclipse.jface.viewers.ILabelProvider
Overrides:
getText in class org.eclipse.jface.viewers.LabelProvider

getImage

public org.eclipse.swt.graphics.Image getImage(java.lang.Object element)
Specified by:
getImage in interface org.eclipse.jface.viewers.ILabelProvider
Overrides:
getImage in class org.eclipse.jface.viewers.LabelProvider

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.jface.viewers.IBaseLabelProvider
Overrides:
dispose in class org.eclipse.jface.viewers.LabelProvider

getImageFlags

public int getImageFlags()
Gets the image flags. Can be overwriten by super classes.

Returns:
Returns a int

getTextFlags

public int getTextFlags()
Gets the text flags. Can be overwriten by super classes.

Returns:
Returns a int