| CustomObjectInfo or JavaInfo [message #1086088] |
Tue, 13 August 2013 16:03  |
Giscard Faria Messages: 4 Registered: August 2013 |
Junior Member |
|
|
Hi folks,
We have plans to add a new proprietary UI Toolkit to WindowBuilder, basically we will have a DesignPage wich is bound to a ".frm" file (text file), also we shall generate some java source. However the BiDirectional relation is between the Design and the ".frm" file.
Looking through the code, I could see that JavaInfo is used extensively. However I could notice that for XWT it was designed a XmlObjectInfo.
My question is: In my case, where I do use a ".frm" file and a java source file, is it a better design create a JavaFormObjectInfo? Or can I go with the JavaInfo straight way?
Thanks.
|
|
|
|
| Re: CustomObjectInfo or JavaInfo [message #1086984 is a reply to message #1086088] |
Wed, 14 August 2013 21:44   |
Konstantin Scheglov Messages: 554 Registered: July 2009 |
Senior Member |
|
|
I think you need something like it is done in GWT Designer (I think it is also open source).
Basically, you need to create separate hierarchy from Object, like FormObjectInfo with its own mechanism to parse, update properties, etc. Something like it is done for XmlObjectInfo, but with different implementation.
So, may be best approach is to take XML plugins, clone them and massage.
This will also solve your problem with reparsing on FRM file change.
You will have your own mechanisms for this.
As for Java file updates, you may do this manually or create only org.eclipse.wb.internal.core.utils.ast.AstEditor to update it.
Konstantin Scheglov,
Google, Inc.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01659 seconds