too short override file [message #612235] |
Thu, 02 March 2006 14:33 |
Markus Messages: 52 Registered: July 2009 |
Member |
|
|
Hi!
I've a subclass of JPasswordField called STTextField. This STTextfield has
a field called "converter" with get and set method. converter is of the
abstract type STConverter. The property "converter" appears in the
Property Sheet and can be set there. If I set in STDateConverter (a
subclass of STConverter), the code
"stTextField.setConverter(getSTDateConverter)" and the corresponding get
method is created. Since the code becomes confusing that way, I don't want
to create a get method in this case. So I wrote a STConverter.override
where the beanLocation is set to GLOBAL_LOCAL. Nothing more is done in
this override.
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:org.eclipse.ve.internal.cde.decorators="http:///org/eclipse/ve/internal/cde/decorators.ecore"
xmlns:org.eclipse.ve.internal.cde.utility="http:///org/eclipse/ve/internal/cde/utility.ecore"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:jcm="http:///org/eclipse/ve/internal/jcm.ecore"
xmlns:event="event.xmi">
<event:AddMany featureName="eAnnotations">
<addedEObjects xsi:type="jcm:BeanDecorator" beanLocation="GLOBAL_LOCAL"/>
</event:AddMany>
</xmi:XMI>
Unfortunately it does not work that way. The get method is still created.
The override is registrated and in the right subdirectory (My other
overrides are processed the same way). I wonder whether the override is
"too short". I already had a similar problem with an override. It was for
a class called STLabel, which is a subclass of JLabel. First it contained
the same information as the STConverter.override
(beanLocation="GLOBAL_GLOBAL") and was not processed. Then I took a copy
of the JLabel.override, named STLabel.override, where I just altered the
beanLocation entry. That works fine.
Does my short override contain too less information to be processed???
Or is there any other kind of problem why it is not taken???
Regards,
Markus
|
|
|
Powered by
FUDForum. Page generated in 0.02268 seconds