Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 188610 Details for
Bug 334783
[API] Add new API to ease the retrieval of the parameter annotations for an IMethod
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Hack for JavaElement view
patch.txt (text/plain), 1.83 KB, created by
Markus Keller
on 2011-02-09 13:16:42 EST
(
hide
)
Description:
Hack for JavaElement view
Filename:
MIME Type:
Creator:
Markus Keller
Created:
2011-02-09 13:16:42 EST
Size:
1.83 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.jeview >Index: src/org/eclipse/jdt/jeview/views/JavaElement.java >=================================================================== >RCS file: /cvsroot/eclipse/jdt-ui-home/plugins/org.eclipse.jdt.jeview/src/org/eclipse/jdt/jeview/views/JavaElement.java,v >retrieving revision 1.16 >diff -u -r1.16 JavaElement.java >--- src/org/eclipse/jdt/jeview/views/JavaElement.java 8 Mar 2010 16:28:55 -0000 1.16 >+++ src/org/eclipse/jdt/jeview/views/JavaElement.java 9 Feb 2011 18:07:10 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2005, 2010 IBM Corporation and others. >+ * Copyright (c) 2005, 2011 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -486,7 +486,22 @@ > result.add(new JavaElementChildrenProperty(this, "PARAMETER NAMES") { > @Override > protected JEAttribute[] computeChildren() throws JavaModelException { >- return createStrings(this, method.getParameterNames()); >+ String[] strings = method.getParameterNames(); >+ JEAttribute[] children= new JEAttribute[strings.length]; >+ for (int i= 0; i < strings.length; i++) { >+ final int index= i; >+ children[i]= new JavaElementProperty(this, null, strings[i]) { >+ @Override >+ public JEAttribute[] getChildren() { >+ try { >+ return createJavaElements(this, method.getParameterAnnotations(index)); >+ } catch (Exception e) { >+ return new JEAttribute[] {new Error(this, "", e)}; >+ } >+ } >+ }; >+ } >+ return children; > } > }); > result.add(new JavaElementChildrenProperty(this, "PARAMETER TYPES") {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 334783
:
188592
|
188599
|
188610
|
188895
|
189128
|
189195
|
189196
|
189202
|
189233
|
189390