Author: scabanovich
Date: 2011-03-03 17:14:09 -0500 (Thu, 03 Mar 2011)
New Revision: 29483
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewBeanWizardPage.java
Log:
JBIDE-8515
https://issues.jboss.org/browse/JBIDE-8515
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewBeanWizardPage.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewBeanWizardPage.java 2011-03-03
21:37:07 UTC (rev 29482)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/NewBeanWizardPage.java 2011-03-03
22:14:09 UTC (rev 29483)
@@ -126,8 +126,8 @@
} catch (JavaModelException e) {
CDICorePlugin.getDefault().logError(e);
}
+ ArrayList<String> interfacesNames = new ArrayList<String>();
if (isInterface) {
- ArrayList<String> interfacesNames = new ArrayList<String>();
String name = "";
try {
name = type.getFullyQualifiedParameterizedName();
@@ -135,12 +135,12 @@
name = type.getFullyQualifiedName();
}
interfacesNames.add(name);
- setSuperInterfaces(interfacesNames, true);
- superInterfacesChanged();
setDefaultTypeName(name);
}
+ interfacesNames.add("java.io.Serializable");
+ setSuperInterfaces(interfacesNames, true);
+ superInterfacesChanged();
}
- setModifiers(getModifiers() | Flags.AccAbstract, true);
doStatusUpdate();
}