Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsCustomObjectInfo or JavaInfo
https://www.eclipse.org/forums/index.php/mv/msg/504713/1086088/#msg_1086088
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.
]]>Giscard Faria2013-08-13T20:03:57-00:00Re: CustomObjectInfo or JavaInfo
https://www.eclipse.org/forums/index.php/mv/msg/504713/1086117/#msg_1086117
Some frequently questions:
- Why do not use the form.java itself instead of a form text file?
The UI toolkit was designed "couple" years ago, and that is how it works.
- Why the components are in java and not a "xml-based" file format?
The UI toolkit was designed to have the information in the source code.
]]>Giscard Faria2013-08-13T21:03:33-00:00Re: CustomObjectInfo or JavaInfo
https://www.eclipse.org/forums/index.php/mv/msg/504713/1086984/#msg_1086984
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 Scheglov2013-08-15T01:44:06-00:00Re: CustomObjectInfo or JavaInfo
https://www.eclipse.org/forums/index.php/mv/msg/504713/1087275/#msg_1087275
We did some tests and really decided to go with WindowBuilder in our project. However we are a bit concerned about take the wrong design approach due to lack of deep knowledge on the framework.
Do your guys have any interest on a commercial consulting? It could be via skype, just couple of meetings to help us on how to take the right directions and prevent a future rework.
We've also included in our budget a documentation about extending WindowBuilder, I believe that is a good return to community which we would like to make part of, even though we will have to maintain our product.
Regards.]]>Giscard Faria2013-08-15T11:58:48-00:00Re: CustomObjectInfo or JavaInfo
https://www.eclipse.org/forums/index.php/mv/msg/504713/1088405/#msg_1088405
But may be my friend, co-author will have time.
Write me to MyFirstName.LastName@gmail.com to discuss.]]>Konstantin Scheglov2013-08-17T02:25:16-00:00