Incorrect class name created in EMF [message #128335] |
Tue, 11 July 2006 14:06 |
Eclipse User |
|
|
|
Originally posted by: xubin.wei.ellingtonpcb.com
hi,
I have new plugin install in VE environment, but it seem can't create the
correct class in EMF ? why ? -
[1] I have add the class name in
cymodel.xmi
<?xml version="1.0" encoding="UTF-8"?>
<children ... creationClassURI="java:/com.cy.ve.widget#Simplemodel">
<entryLabel
xsi:type="org.eclipse.ve.internal.cde.utility:ConstantString "
string="Simplemodel"/>
<keyedValues xsi:type="ecore:EStringToStringMapEntry"
key="org.eclipse.ve.internal.cde.core.nameincomposition"
value="sSimplemodel"/>
</children>
</org.eclipse.ve.internal.cde.palette:Drawer>
[2] But in EMF decode the JAVA source,
we find it does not create the correct class name, there are use parent
class name
'Shell' replaced.
private Simplemodel sSimplemodel = null; //
@jve:decl-index=0:visual-constraint="198,90"
/**
* This method initializes sSimplemodel
*
*/
private void createSSimplemodel() {
// it should be sSimplemodel = new
// Simplemodel();
sSimplemodel = new Shell();
sSimplemodel.setLayout(new GridLayout());
}
|
|
|
Re: Incorrect class name created in EMF [message #128349 is a reply to message #128335] |
Tue, 11 July 2006 14:46 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
SimpleModel shouldn't inherit from Shell because shell is effectively
final. It is not supposed to be subclassed.
I don't know why it says new Shell though. That would only happen if
SimpleModel has not been compiled, that only the source is available.
--
Thanks,
Rich Kulp
|
|
|
Re: Incorrect class name created in EMF [message #613509 is a reply to message #128335] |
Tue, 11 July 2006 14:46 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
SimpleModel shouldn't inherit from Shell because shell is effectively
final. It is not supposed to be subclassed.
I don't know why it says new Shell though. That would only happen if
SimpleModel has not been compiled, that only the source is available.
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.03298 seconds