Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Adding feature of control-lock
Adding feature of control-lock [message #143025] Mon, 12 November 2007 02:31
Eclipse User
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.
Previous Topic:How to Convert a java file to "IType" ?
Next Topic:Adding feature of control-lock
Goto Forum:
  


Current Time: Tue Jul 29 17:11:41 EDT 2014

Powered by FUDForum. Page generated in 0.01524 seconds