Author: vrubezhny
Date: 2010-09-29 16:37:05 -0400 (Wed, 29 Sep 2010)
New Revision: 25311
Modified:
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver/TypeInfoCollector.java
Log:
JBIDE-7168
Code completion inserts methods with parameters.
The parameters are excluded.
Modified:
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver/TypeInfoCollector.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver/TypeInfoCollector.java 2010-09-29
20:20:02 UTC (rev 25310)
+++
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/resolver/TypeInfoCollector.java 2010-09-29
20:37:05 UTC (rev 25311)
@@ -1085,13 +1085,13 @@
methods.add(new MemberPresentation(name.toString(), method));
}
- // Add method as 'foo(param1,param2)'
+ // As requirement of JBIDE-7168: Add method as 'foo()' (do not extract the
parameters)
name.append('(');
- String[] mParams = method.getParameterNames();
- for (int j = 0; mParams != null && j < mParams.length; j++) {
- if (j > 0) name.append(", "); //$NON-NLS-1$
- name.append(mParams[j]);
- }
+// String[] mParams = method.getParameterNames();
+// for (int j = 0; mParams != null && j < mParams.length; j++) {
+// if (j > 0) name.append(", "); //$NON-NLS-1$
+// name.append(mParams[j]);
+// }
name.append(')');
methods.add(new MemberPresentation(name.toString(), method));
Show replies by date