Bug 5295 Segmented view misses field comment
Build 20011025 1. Create the following CU: X.java ------ public class X { String s1 = "s1"; //comment for s1 } 2. Make sure that 'Show Source of Selected Element Only' is selected 3. In the Outline, select field 's1' Observe: The comment doesn't appear near the field declaration.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaParseTreeBuilder.java
current.setLength(declarationEnd - current.getRange().getOffset() + 1);
		fStack.pop();
	}
	
	/**
	 * Builds a signature string from the given name and parameter types.
	 */
	private String getSignature(char[] name, char[][] parameterTypes) {
		StringBuffer buffer= new StringBuffer();
		buffer.append(name);
		buffer.append('(');
		if (parameterTypes != null) {
			for (int p= 0; p < parameterTypes.length; p++) {
				String parameterType= new String(parameterTypes[p]);
				
				int pos= parameterType.lastIndexOf('.');
				if (pos >= 0)
					parameterType= parameterType.substring(pos+1);
				
				buffer.append(parameterType);
				if (p < parameterTypes.length-1)
					buffer.append(", "); 
			}
		}
		buffer.append(')');
		return buffer.toString();
	}
}