[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-patch] Delta Builder Helper Functions in the CModel
|
Plus some cleanups.
Thanks,
Hoda
Index: model/org/eclipse/cdt/core/model/INamespace.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/INamespace.java,v
retrieving revision 1.2
diff -u -r1.2 INamespace.java
--- model/org/eclipse/cdt/core/model/INamespace.java 1 Apr 2003 19:51:26 -0000 1.2
+++ model/org/eclipse/cdt/core/model/INamespace.java 3 Apr 2003 21:45:39 -0000
@@ -8,9 +8,4 @@
* Represents a package declaration in a C translation unit.
*/
public interface INamespace extends ICElement, IParent, ISourceManipulation, ISourceReference {
- /**
- * Returns the name of the package the statement refers to.
- * This is a handle-only method.
- */
- String getElementName();
}
Index: model/org/eclipse/cdt/core/model/ITypeDef.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/ITypeDef.java,v
retrieving revision 1.1
diff -u -r1.1 ITypeDef.java
--- model/org/eclipse/cdt/core/model/ITypeDef.java 26 Jun 2002 20:37:14 -0000 1.1
+++ model/org/eclipse/cdt/core/model/ITypeDef.java 3 Apr 2003 21:45:39 -0000
@@ -9,8 +9,4 @@
* Represents a field declared in a type.
*/
public interface ITypeDef extends ICElement, ISourceManipulation, ISourceReference {
- /**
- * Return the type beeing alias.
- */
- String getType() throws CModelException;
}
Index: model/org/eclipse/cdt/internal/core/model/CElement.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CElement.java,v
retrieving revision 1.9
diff -u -r1.9 CElement.java
--- model/org/eclipse/cdt/internal/core/model/CElement.java 1 Apr 2003 18:52:50 -0000 1.9
+++ model/org/eclipse/cdt/internal/core/model/CElement.java 3 Apr 2003 21:45:40 -0000
@@ -185,7 +185,7 @@
return false;
if (fType != other.fType)
return false;
- if (other.fName != null && fName.equals(other.fName)) {
+ if (fName.equals(other.fName)) {
if (fParent != null && fParent.equals(other.fParent)) {
return true;
}
Index: model/org/eclipse/cdt/internal/core/model/Enumeration.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Enumeration.java,v
retrieving revision 1.2
diff -u -r1.2 Enumeration.java
--- model/org/eclipse/cdt/internal/core/model/Enumeration.java 31 Mar 2003 20:47:34 -0000 1.2
+++ model/org/eclipse/cdt/internal/core/model/Enumeration.java 3 Apr 2003 21:45:39 -0000
@@ -16,19 +16,17 @@
public class Enumeration extends SourceManipulation implements IEnumeration{
- String typeName = "";
- boolean isStatic = false;
- boolean isConst = false;
- boolean isVolatile = false;
-
public Enumeration(ICElement parent, String name) {
- super(parent, name, CElement.C_ENUMERATION);
+ super(parent, name, CElement.C_ENUMERATION);
}
protected CElementInfo createElementInfo () {
- return new SourceManipulationInfo(this);
+ return new EnumerationInfo(this);
}
+ private EnumerationInfo getEnumerationInfo(){
+ return (EnumerationInfo) getElementInfo();
+ }
/**
* @see org.eclipse.cdt.core.model.IVariable#getInitializer()
*/
@@ -40,14 +38,14 @@
* @see org.eclipse.cdt.core.model.IVariableDeclaration#getTypeName()
*/
public String getTypeName() {
- return typeName;
+ return getEnumerationInfo().getTypeName();
}
/**
* @see org.eclipse.cdt.core.model.IVariableDeclaration#setTypeName(java.lang.String)
*/
public void setTypeName(String type) {
- typeName = type;
+ getEnumerationInfo().setTypeName(type);
}
/**
@@ -61,21 +59,21 @@
* @see org.eclipse.cdt.core.model.IDeclaration#isConst()
*/
public boolean isConst() {
- return isConst;
+ return getEnumerationInfo().isConst();
}
/**
* @see org.eclipse.cdt.core.model.IDeclaration#isStatic()
*/
public boolean isStatic() {
- return isStatic;
+ return getEnumerationInfo().isStatic();
}
/**
* @see org.eclipse.cdt.core.model.IDeclaration#isVolatile()
*/
public boolean isVolatile() {
- return isVolatile;
+ return getEnumerationInfo().isVolatile();
}
/**
@@ -83,7 +81,7 @@
* @param isConst The isConst to set
*/
public void setConst(boolean isConst) {
- this.isConst = isConst;
+ getEnumerationInfo().setConst(isConst);
}
/**
@@ -91,7 +89,7 @@
* @param isStatic The isStatic to set
*/
public void setStatic(boolean isStatic) {
- this.isStatic = isStatic;
+ getEnumerationInfo().setStatic( isStatic);
}
/**
@@ -99,7 +97,7 @@
* @param isVolatile The isVolatile to set
*/
public void setVolatile(boolean isVolatile) {
- this.isVolatile = isVolatile;
- }
+ getEnumerationInfo().setVolatile(isVolatile);
+ }
}
Index: model/org/eclipse/cdt/internal/core/model/EnumerationInfo.java
===================================================================
RCS file: model/org/eclipse/cdt/internal/core/model/EnumerationInfo.java
diff -N model/org/eclipse/cdt/internal/core/model/EnumerationInfo.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ model/org/eclipse/cdt/internal/core/model/EnumerationInfo.java 3 Apr 2003 21:45:40 -0000
@@ -0,0 +1,21 @@
+package org.eclipse.cdt.internal.core.model;
+
+/**********************************************************************
+ * Copyright (c) 2002,2003 Rational Software Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v0.5
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v05.html
+ *
+ * Contributors:
+ * Rational Software - Initial API and implementation
+***********************************************************************/
+public class EnumerationInfo extends VariableInfo{
+
+
+ protected EnumerationInfo(CElement element) {
+ super(element);
+ }
+
+
+}
Index: model/org/eclipse/cdt/internal/core/model/Field.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Field.java,v
retrieving revision 1.4
diff -u -r1.4 Field.java
--- model/org/eclipse/cdt/internal/core/model/Field.java 28 Mar 2003 21:05:20 -0000 1.4
+++ model/org/eclipse/cdt/internal/core/model/Field.java 3 Apr 2003 21:45:40 -0000
@@ -86,15 +86,4 @@
protected CElementInfo createElementInfo () {
return new FieldInfo(this);
}
-
- // tests both info stored in element and element info
- public boolean isIdentical(Field other){
- FieldInfo otherInfo= other.getFieldInfo();
- if ( (this.equals(other))
- && (getFieldInfo().hasSameContentsAs(otherInfo))
- )
- return true;
- else
- return false;
- }
}
Index: model/org/eclipse/cdt/internal/core/model/FieldInfo.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/FieldInfo.java,v
retrieving revision 1.3
diff -u -r1.3 FieldInfo.java
--- model/org/eclipse/cdt/internal/core/model/FieldInfo.java 28 Mar 2003 21:05:20 -0000 1.3
+++ model/org/eclipse/cdt/internal/core/model/FieldInfo.java 3 Apr 2003 21:45:39 -0000
@@ -36,25 +36,6 @@
protected String getTypeName(){
return typeStr;
}
-
- /**
- * Tests info stored in element info only
- * @param otherInfo
- * @return boolean
- */
- public boolean hasSameContentsAs( SourceManipulationInfo info){
- FieldInfo otherInfo = (FieldInfo) info;
- if( (typeStr.equals(otherInfo.getTypeName()))
- && (isConst == otherInfo.isConst())
- && (isVolatile == otherInfo.isVolatile())
- && (isMutable == otherInfo.isMutable())
- && (visibility == otherInfo.getVisibility())
- && (isStatic == otherInfo.isStatic())
- )
- return true;
- else
- return false;
- }
protected void setAccessControl(int flags) {
this.flags = flags;
@@ -110,4 +91,20 @@
public void setVisibility(int visibility) {
this.visibility = visibility;
}
+
+ /**
+ * @see org.eclipse.cdt.internal.core.model.SourceManipulationInfo#hasSameContentsAs(SourceManipulationInfo)
+ */
+ public boolean hasSameContentsAs( SourceManipulationInfo info){
+
+ return( super.hasSameContentsAs(info)
+ && (typeStr.equals(((FieldInfo)info).getTypeName()))
+ && (isConst == ((FieldInfo)info).isConst())
+ && (isVolatile == ((FieldInfo)info).isVolatile())
+ && (isMutable == ((FieldInfo)info).isMutable())
+ && (visibility == ((FieldInfo)info).getVisibility())
+ && (isStatic == ((FieldInfo)info).isStatic())
+ );
+ }
+
}
Index: model/org/eclipse/cdt/internal/core/model/FunctionDeclaration.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/FunctionDeclaration.java,v
retrieving revision 1.4
diff -u -r1.4 FunctionDeclaration.java
--- model/org/eclipse/cdt/internal/core/model/FunctionDeclaration.java 28 Mar 2003 21:05:20 -0000 1.4
+++ model/org/eclipse/cdt/internal/core/model/FunctionDeclaration.java 3 Apr 2003 21:45:39 -0000
@@ -35,7 +35,6 @@
public void setReturnType(String type){
returnType = type;
- getFunctionInfo().setReturnType(type);
}
public int getNumberOfParameters() {
@@ -91,8 +90,12 @@
}
public boolean equals(Object other) {
+ // Two function declarations are equal if
+ // Their parents and names are equal and
return ( super.equals(other)
+ // their parameter types are equal and
&& Util.equalArraysOrNull(fParameterTypes, ((FunctionDeclaration)other).fParameterTypes)
+ // their return types are equal
&& getReturnType().equals(((FunctionDeclaration)other).getReturnType())
);
}
Index: model/org/eclipse/cdt/internal/core/model/FunctionInfo.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/FunctionInfo.java,v
retrieving revision 1.4
diff -u -r1.4 FunctionInfo.java
--- model/org/eclipse/cdt/internal/core/model/FunctionInfo.java 28 Mar 2003 21:05:20 -0000 1.4
+++ model/org/eclipse/cdt/internal/core/model/FunctionInfo.java 3 Apr 2003 21:45:39 -0000
@@ -8,8 +8,6 @@
class FunctionInfo extends SourceManipulationInfo {
protected int flags;
- protected String returnType = "";
- protected int numOfParams;
protected boolean isStatic;
protected boolean isVolatile;
@@ -27,13 +25,6 @@
this.flags = flags;
}
- protected String getReturnType(){
- return returnType;
- }
-
- protected void setReturnType(String type){
- returnType = type;
- }
/**
* Returns the isStatic.
* @return boolean
@@ -64,6 +55,16 @@
*/
public void setVolatile(boolean isVolatile) {
this.isVolatile = isVolatile;
+ }
+
+ /**
+ * @see org.eclipse.cdt.internal.core.model.SourceManipulationInfo#hasSameContentsAs(org.eclipse.cdt.internal.core.model.SourceManipulationInfo)
+ */
+ public boolean hasSameContentsAs(SourceManipulationInfo otherInfo) {
+ return (super.hasSameContentsAs(otherInfo)
+ && (this.isStatic() == ((FunctionInfo)otherInfo).isStatic())
+ && (this.isVolatile() == ((FunctionInfo)otherInfo).isVolatile())
+ );
}
}
Index: model/org/eclipse/cdt/internal/core/model/MethodDeclaration.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/MethodDeclaration.java,v
retrieving revision 1.2
diff -u -r1.2 MethodDeclaration.java
--- model/org/eclipse/cdt/internal/core/model/MethodDeclaration.java 28 Mar 2003 21:05:20 -0000 1.2
+++ model/org/eclipse/cdt/internal/core/model/MethodDeclaration.java 3 Apr 2003 21:45:39 -0000
@@ -17,7 +17,7 @@
public class MethodDeclaration extends FunctionDeclaration implements IMethodDeclaration{
boolean isConst;
- boolean isVolatile;
+;
public MethodDeclaration(ICElement parent, String name){
super(parent, name, CElement.C_METHOD_DECLARATION);
@@ -90,15 +90,6 @@
getMethodInfo().setConst(isConst);
}
- public boolean isVolatile(){
- return isVolatile;
- }
-
- public void setVolatile(boolean isVolatile){
- this.isVolatile = isVolatile;
- getMethodInfo().setVolatile(isVolatile);
- }
-
public int getVisibility(){
return getMethodInfo().getVisibility();
}
@@ -119,9 +110,11 @@
* See if we need anything else to put in equals here
*/
public boolean equals(Object other) {
+ // Two methods are equal if
+ // their parents, names, parameter types and return types are equal and
return ( super.equals(other)
+ // their constant directive is the same
&& isConst() == ((MethodDeclaration)other).isConst()
- && isVolatile() == ((MethodDeclaration)other).isVolatile()
);
}
Index: model/org/eclipse/cdt/internal/core/model/MethodInfo.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/MethodInfo.java,v
retrieving revision 1.2
diff -u -r1.2 MethodInfo.java
--- model/org/eclipse/cdt/internal/core/model/MethodInfo.java 28 Mar 2003 21:05:20 -0000 1.2
+++ model/org/eclipse/cdt/internal/core/model/MethodInfo.java 3 Apr 2003 21:45:40 -0000
@@ -83,4 +83,18 @@
this.visibility = visibility;
}
+ /**
+ * @see org.eclipse.cdt.internal.core.model.SourceManipulationInfo#hasSameContentsAs(org.eclipse.cdt.internal.core.model.SourceManipulationInfo)
+ */
+ public boolean hasSameContentsAs(SourceManipulationInfo otherInfo) {
+ return (super.hasSameContentsAs(otherInfo)
+ && (isConst == ((MethodInfo)otherInfo).isConst())
+ && (isAbstract == ((MethodInfo)otherInfo).isAbstract())
+ && (isInline == ((MethodInfo)otherInfo).isInline())
+ && (isVirtual == ((MethodInfo)otherInfo).isVirtual())
+ && (isFriend == ((MethodInfo)otherInfo).isFriend())
+ && (visibility == ((MethodInfo)otherInfo).getVisibility())
+ );
+ }
+
}
Index: model/org/eclipse/cdt/internal/core/model/Namespace.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/Namespace.java,v
retrieving revision 1.1
diff -u -r1.1 Namespace.java
--- model/org/eclipse/cdt/internal/core/model/Namespace.java 31 Mar 2003 16:33:54 -0000 1.1
+++ model/org/eclipse/cdt/internal/core/model/Namespace.java 3 Apr 2003 21:45:40 -0000
@@ -20,8 +20,4 @@
super(parent, name, CElement.C_NAMESPACE);
}
- protected CElementInfo createElementInfo () {
- return new SourceManipulationInfo(this);
- }
-
}
Index: model/org/eclipse/cdt/internal/core/model/SourceManipulation.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/SourceManipulation.java,v
retrieving revision 1.5
diff -u -r1.5 SourceManipulation.java
--- model/org/eclipse/cdt/internal/core/model/SourceManipulation.java 27 Mar 2003 17:33:05 -0000 1.5
+++ model/org/eclipse/cdt/internal/core/model/SourceManipulation.java 3 Apr 2003 21:45:40 -0000
@@ -152,4 +152,9 @@
protected SourceManipulationInfo getSourceManipulationInfo() {
return (SourceManipulationInfo)getElementInfo();
}
+
+ public boolean isIdentical(SourceManipulation other){
+ return (this.equals(other)
+ && (this.getSourceManipulationInfo().hasSameContentsAs(other.getSourceManipulationInfo())));
+ }
}
Index: model/org/eclipse/cdt/internal/core/model/SourceManipulationInfo.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/SourceManipulationInfo.java,v
retrieving revision 1.4
diff -u -r1.4 SourceManipulationInfo.java
--- model/org/eclipse/cdt/internal/core/model/SourceManipulationInfo.java 1 Apr 2003 16:55:15 -0000 1.4
+++ model/org/eclipse/cdt/internal/core/model/SourceManipulationInfo.java 3 Apr 2003 21:45:39 -0000
@@ -146,7 +146,7 @@
* subclasses should override
*/
public boolean hasSameContentsAs( SourceManipulationInfo otherInfo){
- return true;
+ return (this.element.fType == otherInfo.element.fType);
}
}
Index: model/org/eclipse/cdt/internal/core/model/StructureInfo.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/StructureInfo.java,v
retrieving revision 1.2
diff -u -r1.2 StructureInfo.java
--- model/org/eclipse/cdt/internal/core/model/StructureInfo.java 28 Mar 2003 21:05:20 -0000 1.2
+++ model/org/eclipse/cdt/internal/core/model/StructureInfo.java 3 Apr 2003 21:45:39 -0000
@@ -12,22 +12,17 @@
***********************************************************************/
import org.eclipse.cdt.core.model.ICElement;
-public class StructureInfo extends SourceManipulationInfo {
+public class StructureInfo extends VariableInfo {
- String type;
- boolean isConst = false;
- boolean isVolatile = false;
- boolean isStatic = false;
-
protected StructureInfo (CElement element) {
super(element);
if (element.getElementType() == ICElement.C_CLASS)
- type = "class";
+ this.setTypeName("class");
else if (element.getElementType() == ICElement.C_UNION)
- type = "union";
+ this.setTypeName("union");
else
- type = "struct";
+ this.setTypeName("struct");
}
public boolean isUnion() {
@@ -40,65 +35,6 @@
public boolean isStruct() {
return element.getElementType() == ICElement.C_STRUCT;
- }
-
- public String getTypeName(){
- return type;
- }
-
- public void setTypeString(String elmType){
- type = elmType;
- }
- public boolean hasSameContentsAs( StructureInfo otherInfo){
- return true;
- }
-
- /**
- * Returns the isConst.
- * @return boolean
- */
- public boolean isConst() {
- return isConst;
- }
-
- /**
- * Returns the isStatic.
- * @return boolean
- */
- public boolean isStatic() {
- return isStatic;
- }
-
- /**
- * Returns the isVolatile.
- * @return boolean
- */
- public boolean isVolatile() {
- return isVolatile;
- }
-
- /**
- * Sets the isConst.
- * @param isConst The isConst to set
- */
- public void setConst(boolean isConst) {
- this.isConst = isConst;
- }
-
- /**
- * Sets the isStatic.
- * @param isStatic The isStatic to set
- */
- public void setStatic(boolean isStatic) {
- this.isStatic = isStatic;
- }
-
- /**
- * Sets the isVolatile.
- * @param isVolatile The isVolatile to set
- */
- public void setVolatile(boolean isVolatile) {
- this.isVolatile = isVolatile;
}
}
Index: model/org/eclipse/cdt/internal/core/model/TypeDef.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/TypeDef.java,v
retrieving revision 1.1
diff -u -r1.1 TypeDef.java
--- model/org/eclipse/cdt/internal/core/model/TypeDef.java 31 Mar 2003 16:33:54 -0000 1.1
+++ model/org/eclipse/cdt/internal/core/model/TypeDef.java 3 Apr 2003 21:45:40 -0000
@@ -11,26 +11,13 @@
* Rational Software - Initial API and implementation
***********************************************************************/
-import org.eclipse.cdt.core.model.CModelException;
import org.eclipse.cdt.core.model.ICElement;
import org.eclipse.cdt.core.model.ITypeDef;
public class TypeDef extends SourceManipulation implements ITypeDef{
-
+
public TypeDef(ICElement parent, String name) {
super(parent, name, CElement.C_TYPEDEF);
- }
-
- protected CElementInfo createElementInfo () {
- return new SourceManipulationInfo(this);
- }
-
-
- /**
- * @see org.eclipse.cdt.core.model.ITypeDef#getType()
- */
- public String getType() throws CModelException {
- return null;
}
}
Index: model/org/eclipse/cdt/internal/core/model/VariableInfo.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/VariableInfo.java,v
retrieving revision 1.4
diff -u -r1.4 VariableInfo.java
--- model/org/eclipse/cdt/internal/core/model/VariableInfo.java 28 Mar 2003 21:05:20 -0000 1.4
+++ model/org/eclipse/cdt/internal/core/model/VariableInfo.java 3 Apr 2003 21:45:40 -0000
@@ -29,13 +29,6 @@
protected void setTypeName(String type){
typeStr = type;
}
-
- protected boolean hasSameContentsAs( VariableInfo otherInfo){
- if(typeStr.equals(otherInfo.getTypeName()))
- return true;
- else
- return false;
- }
protected void setAccessControl(int flags) {
this.flags = flags;
@@ -60,12 +53,25 @@
this.isVolatile = isVolatile;
}
- public boolean isStatic() {
+ protected boolean isStatic() {
return isStatic;
}
- public void setStatic(boolean isStatic) {
+ protected void setStatic(boolean isStatic) {
this.isStatic = isStatic;
}
+ /**
+ * @see org.eclipse.cdt.internal.core.model.SourceManipulationInfo#hasSameContentsAs(org.eclipse.cdt.internal.core.model.SourceManipulationInfo)
+ */
+ public boolean hasSameContentsAs(SourceManipulationInfo otherInfo) {
+ return
+ ( super.hasSameContentsAs(otherInfo)
+ && ( typeStr.equals(((VariableInfo)otherInfo).getTypeName()) )
+ && ( isConst() == ((VariableInfo)otherInfo).isConst() )
+ && (isVolatile() == ((VariableInfo)otherInfo).isVolatile() )
+ && (isStatic() == ((VariableInfo)otherInfo).isStatic() )
+ );
+ }
+
}
Index: parser/org/eclipse/cdt/internal/core/model/SimpleDeclarationWrapper.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/model/SimpleDeclarationWrapper.java,v
retrieving revision 1.16
diff -u -r1.16 SimpleDeclarationWrapper.java
--- parser/org/eclipse/cdt/internal/core/model/SimpleDeclarationWrapper.java 3 Apr 2003 15:38:47 -0000 1.16
+++ parser/org/eclipse/cdt/internal/core/model/SimpleDeclarationWrapper.java 3 Apr 2003 21:45:41 -0000
@@ -325,6 +325,7 @@
newElement.setVisibility(this.getCurrentVisibility());
newElement.setVolatile(isVolatile());
newElement.setStatic(isStatic());
+ newElement.setConst(isConst());
return newElement;
}
@@ -349,6 +350,7 @@
newElement.setVisibility(this.getCurrentVisibility());
newElement.setVolatile(isVolatile());
newElement.setStatic(isStatic());
+ newElement.setConst(isConst());
return newElement;
}
Index: src/org/eclipse/cdt/ui/CElementLabelProvider.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/CElementLabelProvider.java,v
retrieving revision 1.9
diff -u -r1.9 CElementLabelProvider.java
--- src/org/eclipse/cdt/ui/CElementLabelProvider.java 3 Apr 2003 15:38:35 -0000 1.9
+++ src/org/eclipse/cdt/ui/CElementLabelProvider.java 3 Apr 2003 21:46:01 -0000
@@ -74,6 +74,8 @@
case ICElement.C_METHOD_DECLARATION:
IFunctionDeclaration fDecl = (IFunctionDeclaration) celem;
name = fDecl.getSignature();
+ name += " : ";
+ name += fDecl.getReturnType();
break;
case ICElement.C_STRUCT:
case ICElement.C_UNION: