Author: akazakov
Date: 2011-09-14 14:46:16 -0400 (Wed, 14 Sep 2011)
New Revision: 34742
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/IParametedType.java
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/ParametedType.java
Log:
https://issues.jboss.org/browse/JBIDE-9673 "Show All Generic Configuration
Points", "Show CDI Events" and "Show CDI Observer Methods"
dialogs should look like "Open Implementation" in JDT
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/IParametedType.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/IParametedType.java 2011-09-14
18:45:20 UTC (rev 34741)
+++
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/IParametedType.java 2011-09-14
18:46:16 UTC (rev 34742)
@@ -47,6 +47,8 @@
* Returns the simple name of the type. In case of IType this method will return the
short name of the type.
* If this type is primitive then the method will return the name of the primitive
type.
*
+ * Implementations may not return null.
+ *
* @return the simple name of the type.
*/
String getSimpleName();
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/ParametedType.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/ParametedType.java 2011-09-14
18:45:20 UTC (rev 34741)
+++
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/ParametedType.java 2011-09-14
18:46:16 UTC (rev 34742)
@@ -29,6 +29,7 @@
* @author Viacheslav Kabanovich
*
*/
+@SuppressWarnings("nls")
public class ParametedType implements IParametedType {
protected ParametedTypeFactory typeFactory = null;
protected IType type;
@@ -368,6 +369,13 @@
primitives.put("Float", "float");
primitives.put("Double", "double");
primitives.put("Boolean", "boolean");
+ primitives.put("Integer[]", "int[]");
+ primitives.put("Short[]", "short[]");
+ primitives.put("Long[]", "long[]");
+ primitives.put("Character[]", "char[]");
+ primitives.put("Float[]", "float[]");
+ primitives.put("Double[]", "double[]");
+ primitives.put("Boolean[]", "boolean[]");
}
/*