Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2005, 2010 IBM Corporation and others. |
2 |
* Copyright (c) 2005, 2011 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 486-492
Link Here
|
486 |
result.add(new JavaElementChildrenProperty(this, "PARAMETER NAMES") { |
486 |
result.add(new JavaElementChildrenProperty(this, "PARAMETER NAMES") { |
487 |
@Override |
487 |
@Override |
488 |
protected JEAttribute[] computeChildren() throws JavaModelException { |
488 |
protected JEAttribute[] computeChildren() throws JavaModelException { |
489 |
return createStrings(this, method.getParameterNames()); |
489 |
String[] strings = method.getParameterNames(); |
|
|
490 |
JEAttribute[] children= new JEAttribute[strings.length]; |
491 |
for (int i= 0; i < strings.length; i++) { |
492 |
final int index= i; |
493 |
children[i]= new JavaElementProperty(this, null, strings[i]) { |
494 |
@Override |
495 |
public JEAttribute[] getChildren() { |
496 |
try { |
497 |
return createJavaElements(this, method.getParameterAnnotations(index)); |
498 |
} catch (Exception e) { |
499 |
return new JEAttribute[] {new Error(this, "", e)}; |
500 |
} |
501 |
} |
502 |
}; |
503 |
} |
504 |
return children; |
490 |
} |
505 |
} |
491 |
}); |
506 |
}); |
492 |
result.add(new JavaElementChildrenProperty(this, "PARAMETER TYPES") { |
507 |
result.add(new JavaElementChildrenProperty(this, "PARAMETER TYPES") { |