|
Re: Migrated from JBuilder to Eclipse, how to transform jbinit() -> VE style? [message #127596 is a reply to message #127556] |
Wed, 05 July 2006 13:43 |
Eclipse User |
|
|
|
Originally posted by: jefmyers.us.ibm.com
Khalid,
The VE does look in the jbInit() blocks and works for the most part with
JBuilder classes. The main issue is the JBuilder statements that start
with a call getContentPane(). The VE does not work with these
statements. The way to fix this is to declare a new JPanel, use the
setContentPane() method to set it as the class's content pane, then
replace all the getContentPane() calls in the class with references to
your JPanel. For example, change getContentPane().add(myJButton); to
contentPane.add(myJButton); That should resolve most problems with the
VE opening classes designed with JBuilder.
There is no automatic refactoring of JBuilder style code to VE style.
If you wanted to write one, it'd be a great contribution to the VE project.
Hope this helps,
- Jeff
Khalid Zubair wrote:
> Some of my classes are (surprisingly) editable in VE.
> JBuilder throws all of its auto-generated GUI code in one big fat jbInit() method whereas VE creates a initialize() method and has a bunch of getXYZ() methods.
>
> Is there anyway to make VE look at the jbInit() code (which it obviously understands) and replace it with initialize() + getXYZ() style code?
|
|
|
|
Powered by
FUDForum. Page generated in 0.03249 seconds