Adding feature of control-lock [message #143025] |
Mon, 12 November 2007 07:31 |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: musashi.k.xxx.xxxxx
Hi all,
I'm new Developer of VE.
# I'm not good at English.
# Please allow, even if I am writing the strange text.
I'm trying to add feature of control-lock on VE.
And I have two questions.
1.Adding feature of control-lock is impossible?
2.Why decode logic may not perform or perform?
(my approach is wrong?)
The following is how to have tried me.
---
eclipse ver : 3.1.1
VE ver : 1.1.0.1
j2re ver : 1.4.2_09
1.Extend java.awt.Button to add lock property and override setBounds()
# make ButtonEx.class extends java.awt.Button
# in setBounds(), if control was locked, don't set new Bounds
-> Graphical Part's control does't move.
Palette's bounds value doesn't changed.
Source Part's control was move.(boundsMethod's argument was changed...)
2.Custom code generation for bounds property
# The decoder/decoderHelper was made referring to the turotial.
Decoder class extends ComponentDecoder.
DecoderHelper class extends SimpleAttributeDecoderHelper.
In generateMethod of decoderHelper, get old Bounds Value of control by
BeanProxy.
And decode setBounds arguments from old bounds value.
-> It may not succeed or succeed...
(source Part's, boundsMethod's argument was changed/unchanged...)
so, I looked .log file, but no error's.
 # A SAX parse error comes out rarely...(bounds property is already
used.)
And I tried debug on eclipse plugin Project, but generateMethod(in
helper) may not perform or perform...
Thank you.
|
|
|
Powered by
FUDForum. Page generated in 0.03105 seconds