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 #616876] Mon, 12 November 2007 07: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:Adding feature of control-lock
Next Topic:Choose Bean
Goto Forum:
  


Current Time: Thu Oct 02 12:33:58 GMT 2014

Powered by FUDForum. Page generated in 0.02915 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software