Package org.eclipse.cdt.core.model.util
Class CElementBaseLabels
java.lang.Object
org.eclipse.cdt.core.model.util.CElementBaseLabels
Deprecated.
Use org.eclipse.cdt.ui.CElementLabelProvider instead.
Internally you can also use org.eclipse.cdt.internal.ui.viewsupport.CElementLabels.
Creates labels for ICElement objects.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated.Default options (M_PARAMETER_TYPES enabled)static final int
Deprecated.Qualify all elementsstatic final int
Deprecated.Post qualify all elementsstatic final int
Deprecated.Add source root path.static final String
Deprecated.Separator for parameters, base classes, exceptions, etc.static final String
Deprecated.Separator for appending qualifiersstatic final String
Deprecated.Separator for appending (return) typestatic final int
Deprecated.Default post qualify options (All except Root)static final int
Deprecated.Default qualify options (All except Root)static final int
Deprecated.Field names contain the declared type (appended) e.g.static final int
Deprecated.Fields names are fully qualified.static final int
Deprecated.Fields names are post qualified.static final int
Deprecated.Field names contain the declared type (prepended) e.g.static final int
Deprecated.Static field names without qualifier.static final int
Deprecated.Method names contain return type (appended) e.g.static final int
Deprecated.Method names contain thrown exceptions.static final int
Deprecated.Method names are fully qualified.static final int
Deprecated.Method names contain parameter types.static final int
Deprecated.Method names are post qualified.static final int
Deprecated.Method names contain return type (appended) e.g.static final int
Deprecated.Method definition names without qualifier.static final int
Deprecated.Post qualify symbols with file.static final int
Deprecated.Prepend source root path.static final int
Deprecated.Post qualify container project.static final int
Deprecated.Source roots contain the project name (appended).static final int
Deprecated.Source roots contain the project name (prepended).static final int
Deprecated.Type names are fully qualified.static final int
Deprecated.Append base class specifications to type names.static final int
Deprecated.Instances and specializations are qualified with arguments, templates with template parameter names.static final int
Deprecated.Templates are qualified with template parameters.static final int
Deprecated.Translation unit names are post qualified with their path.static final int
Deprecated.Translation unit names contain the full path. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
getContainerLabel
(ICContainer container, int flags, StringBuffer buf) Deprecated.Appends the label for a container to a StringBuffer.static String
getElementLabel
(ICElement element, int flags) Deprecated.Returns the label for an element.static void
getElementLabel
(ICElement element, int flags, StringBuffer buf) Deprecated.Appends the label for an element to a StringBuffer.static void
getEnumeratorLabel
(IEnumerator var, int flags, StringBuffer buf) Deprecated.Appends the label for an enumerator to a StringBuffer.static void
getFieldLabel
(IField field, int flags, StringBuffer buf) Deprecated.Appends the label for a field to a StringBuffer.static void
getFunctionLabel
(IFunctionDeclaration func, int flags, StringBuffer buf) Deprecated.Appends the label for a function declaration to a StringBuffer.static void
getMacroLabel
(IMacro macro, int flags, StringBuffer buf) Deprecated.Appends the label for a macro definition to a StringBuffer.static void
getMethodLabel
(IMethodDeclaration method, int flags, StringBuffer buf) Deprecated.Appends the label for a method declaration to a StringBuffer.static ISourceRoot
getSourceRoot
(ICElement element) Deprecated.Returns the source root ofICElement
.static void
getSourceRootLabel
(ISourceRoot root, int flags, StringBuffer buf) Deprecated.Appends the label for a source root to a StringBuffer.static void
getTranslationUnitLabel
(ITranslationUnit tu, int flags, StringBuffer buf) Deprecated.Appends the label for a translation unit to a StringBuffer.static void
getTypeDefLabel
(ITypeDef typedef, int flags, StringBuffer buf) Deprecated.Appends the label for a type definition to a StringBuffer.static void
getTypeLabel
(ICElement elem, int flags, StringBuffer buf) Deprecated.Appends the label for a type to a StringBuffer.static void
getVariableLabel
(IVariableDeclaration var, int flags, StringBuffer buf) Deprecated.Appends the label for a variable declaration to a StringBuffer.static boolean
isReferenced
(ISourceRoot root) Deprecated.Returnstrue
if the given source root is referenced.
-
Field Details
-
M_PARAMETER_TYPES
public static final int M_PARAMETER_TYPESDeprecated.Method names contain parameter types. e.g.foo(int)
- See Also:
-
M_SIMPLE_NAME
public static final int M_SIMPLE_NAMEDeprecated.Method definition names without qualifier. e.g.foo(int)
- Since:
- 5.1
- See Also:
-
M_EXCEPTIONS
public static final int M_EXCEPTIONSDeprecated.Method names contain thrown exceptions. e.g.foo throw( IOException )
- See Also:
-
M_APP_RETURNTYPE
public static final int M_APP_RETURNTYPEDeprecated.Method names contain return type (appended) e.g.foo : int
- See Also:
-
M_PRE_RETURNTYPE
public static final int M_PRE_RETURNTYPEDeprecated.Method names contain return type (appended) e.g.int foo
- See Also:
-
M_FULLY_QUALIFIED
public static final int M_FULLY_QUALIFIEDDeprecated.Method names are fully qualified. e.g.ClassName::size
- See Also:
-
M_POST_QUALIFIED
public static final int M_POST_QUALIFIEDDeprecated.Method names are post qualified. e.g.size - ClassName
- See Also:
-
TEMPLATE_PARAMETERS
public static final int TEMPLATE_PARAMETERSDeprecated.Templates are qualified with template parameters. e.g.ClassName
- See Also:
-
F_SIMPLE_NAME
public static final int F_SIMPLE_NAMEDeprecated.Static field names without qualifier. e.g.fHello
- Since:
- 5.1
- See Also:
-
F_APP_TYPE_SIGNATURE
public static final int F_APP_TYPE_SIGNATUREDeprecated.Field names contain the declared type (appended) e.g.fHello: int
- See Also:
-
F_PRE_TYPE_SIGNATURE
public static final int F_PRE_TYPE_SIGNATUREDeprecated.Field names contain the declared type (prepended) e.g.int fHello
- See Also:
-
F_FULLY_QUALIFIED
public static final int F_FULLY_QUALIFIEDDeprecated.Fields names are fully qualified. e.g.ClassName::fField
- See Also:
-
F_POST_QUALIFIED
public static final int F_POST_QUALIFIEDDeprecated.Fields names are post qualified. e.g.fField - ClassName
- See Also:
-
T_FULLY_QUALIFIED
public static final int T_FULLY_QUALIFIEDDeprecated.Type names are fully qualified. e.g.namespace::ClassName
- See Also:
-
TEMPLATE_ARGUMENTS
public static final int TEMPLATE_ARGUMENTSDeprecated.Instances and specializations are qualified with arguments, templates with template parameter names. The flag overridesTEMPLATE_PARAMETERS
.- Since:
- 5.2
- See Also:
-
T_INHERITANCE
public static final int T_INHERITANCEDeprecated.Append base class specifications to type names. e.g.MyClass : public BaseClass
- See Also:
-
TU_QUALIFIED
public static final int TU_QUALIFIEDDeprecated.Translation unit names contain the full path. e.g./MyProject/src/ClassName.cpp
- See Also:
-
TU_POST_QUALIFIED
public static final int TU_POST_QUALIFIEDDeprecated.Translation unit names are post qualified with their path. e.g.ClassName.cpp - /MyProject/src
- See Also:
-
ROOT_QUALIFIED
public static final int ROOT_QUALIFIEDDeprecated.Source roots contain the project name (prepended). e.g.MyProject/src
- See Also:
-
ROOT_POST_QUALIFIED
public static final int ROOT_POST_QUALIFIEDDeprecated.Source roots contain the project name (appended). e.g.src - MyProject
- See Also:
-
APPEND_ROOT_PATH
public static final int APPEND_ROOT_PATHDeprecated.Add source root path. e.g.func() - MyProject/src
Option only applies to getElementLabel- See Also:
-
PREPEND_ROOT_PATH
public static final int PREPEND_ROOT_PATHDeprecated.Prepend source root path. e.g.MyProject/src - func()
Option only applies to getElementLabel- See Also:
-
PROJECT_POST_QUALIFIED
public static final int PROJECT_POST_QUALIFIEDDeprecated.Post qualify container project. For examplefolder - MyProject
if the folder is in project MyProject.- See Also:
-
MF_POST_FILE_QUALIFIED
public static final int MF_POST_FILE_QUALIFIEDDeprecated.Post qualify symbols with file. e.g. func() - /proj/folder/file.cpp- See Also:
-
ALL_FULLY_QUALIFIED
public static final int ALL_FULLY_QUALIFIEDDeprecated.Qualify all elements- See Also:
-
ALL_POST_QUALIFIED
public static final int ALL_POST_QUALIFIEDDeprecated.Post qualify all elements- See Also:
-
ALL_DEFAULT
public static final int ALL_DEFAULTDeprecated.Default options (M_PARAMETER_TYPES enabled)- See Also:
-
DEFAULT_QUALIFIED
public static final int DEFAULT_QUALIFIEDDeprecated.Default qualify options (All except Root)- See Also:
-
DEFAULT_POST_QUALIFIED
public static final int DEFAULT_POST_QUALIFIEDDeprecated.Default post qualify options (All except Root)- See Also:
-
CONCAT_STRING
Deprecated.Separator for appending qualifiers -
COMMA_STRING
Deprecated.Separator for parameters, base classes, exceptions, etc. -
DECL_STRING
Deprecated.Separator for appending (return) type
-
-
Constructor Details
-
CElementBaseLabels
public CElementBaseLabels()Deprecated.
-
-
Method Details
-
getElementLabel
Deprecated.Returns the label for an element.- Parameters:
element
- any element (IMethodDeclaration, IField, ITypeDef, IVariableDeclaration, etc.)flags
- any of the flags (M_*, F_*, ROOT_*, etc.) defined in this class- Returns:
- the label
-
getElementLabel
Deprecated.Appends the label for an element to a StringBuffer.- Parameters:
element
- any element (IMethodDeclaration, IField, ITypeDef, IVariableDeclaration, etc.)flags
- any of the flags (M_*, F_*, ROOT_*, etc.) defined in this classbuf
- the buffer to append the label
-
getMacroLabel
Deprecated.Appends the label for a macro definition to a StringBuffer.- Parameters:
macro
- a macro definitionflags
-MF_POST_FILE_QUALIFIED
, or 0.buf
- the buffer to append the label to.- Since:
- 5.0
-
getMethodLabel
Deprecated.Appends the label for a method declaration to a StringBuffer.- Parameters:
method
- a method declarationflags
- any of the M_* flags, and MF_POST_FILE_QUALIFIEDbuf
- the buffer to append the label
-
getFieldLabel
Deprecated.Appends the label for a field to a StringBuffer.- Parameters:
field
- a fieldflags
- any of the F_* flags, and MF_POST_FILE_QUALIFIEDbuf
- the buffer to append the label
-
getVariableLabel
Deprecated.Appends the label for a variable declaration to a StringBuffer.- Parameters:
var
- a variable declarationflags
- any of the F_* flags, and MF_POST_FILE_QUALIFIEDbuf
- the buffer to append the label
-
getEnumeratorLabel
Deprecated.Appends the label for an enumerator to a StringBuffer.- Parameters:
var
- an enumeratorflags
- any of the F_* flags, and MF_POST_FILE_QUALIFIEDbuf
- the buffer to append the label
-
getFunctionLabel
Deprecated.Appends the label for a function declaration to a StringBuffer.- Parameters:
func
- a function declarationflags
- any of the M_* flags, and MF_POST_FILE_QUALIFIEDbuf
- the buffer to append the label
-
getTypeDefLabel
Deprecated.Appends the label for a type definition to a StringBuffer.- Parameters:
typedef
- a type definitionflags
- any of the F_* flags, and MF_POST_FILE_QUALIFIEDbuf
- the buffer to append the label
-
getSourceRootLabel
Deprecated.Appends the label for a source root to a StringBuffer.- Parameters:
root
- a source rootflags
- any of the ROOT_* flags, and PROJECT_POST_QUALIFIEDbuf
- the buffer to append the label
-
getContainerLabel
Deprecated.Appends the label for a container to a StringBuffer.- Parameters:
container
- a containerflags
- any of the ROOT_* flags, and PROJECT_POST_QUALIFIEDbuf
- the buffer to append the label
-
getTranslationUnitLabel
Deprecated.Appends the label for a translation unit to a StringBuffer.- Parameters:
tu
- a translation unitflags
- any of the TU_* flagsbuf
- the buffer to append the label
-
getTypeLabel
Deprecated.Appends the label for a type to a StringBuffer.- Parameters:
elem
- a typeflags
- any of the T_* flags, and MF_POST_FILE_QUALIFIEDbuf
- the buffer to append the label
-
getSourceRoot
Deprecated.Returns the source root ofICElement
. If the given element is already a source root, the element itself is returned. -
isReferenced
Deprecated.Returnstrue
if the given source root is referenced. This means it is own by a different project but is referenced by the root's parent. Returnsfalse
if the given root doesn't have an underlying resource.
-