|
|
Re: can I modify source code from other Java Editor to VE format especifications? [message #17778 is a reply to message #17209] |
Mon, 02 February 2004 14:52 |
Eclipse User |
|
|
|
Originally posted by: mendelgili.netscape.net
David Díaz wrote:
> Hi.
>
> I've some thousands of java classes that are show correctly
> by the Visual Editor but they don't follows the VE generated code style.
>
> Basically, this classes have the instantiation and manipulations of the
> visual objects (awt and swing) inside one 'init' method instead separate
> methods.
>
> Exists some plugin or tool to reformat the code to the VE patterns?
>
> Many thanks.
>
VE uses a set of rules and templates to parse and generate source code.
The "Getter" style (PrefPage->Java->VisualEditor->PatternStyle) is
(currently) the only VE style. We are working to open up the extension
API for this.
The "Getter" style (rules/templates) works as following:
Every visual (Swing/AWT) bean, or any bean with a prefix of "ivj" will
be parsed.
Every parsed bean will need to have an initialization method (the only
method where property settings for that bean will be parsed).
An initialization method will be the one that instantiate the bean ...
e.g., ivjBean = new Bean();
A method may be the initalization method for more than one bean.
If the bean is an instance variable, and is instantiated with its
declaration e.g.,
Bean ivjBean = new Bean() ; (vs. the default generation pattern of
Bean ivjBean = null ;) The initalization method would be (if existed)
any of the methods that are listed in the
PrefPage->Java->VisualEditor->PatternStyle methods names (jbInit,
initComponents ....)
For that matter, once the bean/init method were parsed, VE will continue
to use them.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04896 seconds