[forge-dev] Dynamic UI in Eclipse
Richard Kennard
richard at kennardconsulting.com
Thu Jan 17 16:27:05 EST 2013
George,
Yeah, these read like early versions of Metawidget code :)
For ComponentFactory equivalent, see
https://github.com/metawidget/metawidget/blob/master/modules/java/swt/src/main/java/org/metawidget/swt/widgetbuilder/SwtWidgetBuilder.java
For ForgeWizardPage equivalent, see
https://github.com/metawidget/metawidget/blob/master/modules/java/swt/src/main/java/org/metawidget/swt/layout/GridLayout.java
So I think there's a good chance you can save yourself some time here. Especially with regards to data binding support. Please try downloading the examples
distribution:
https://sourceforge.net/project/downloading.php?group_id=208482&filename=metawidget-2.5-examples.zip
And running the 'examples/swt/addressbook-swt.jar' example. Then try the tutorial at:
http://metawidget.org/doc/reference/en/html/ch01s02.html#section-introduction-part2-desktop
Obviously I'd love to see this integration happen. I'm on holiday next week (I can respond to e-mails, but not do any coding). But happy to help if you
have questions.
Regards,
Richard.
On 18/01/2013 8:14 AM, ggastald at redhat.com wrote:
> Sure, it's on
> https://github.com/forge/jbosstools-forge/blob/forge2/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/wizards/ComponentFactory.java
> and
> https://github.com/forge/jbosstools-forge/blob/forge2/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/wizards/ForgeWizardPage.java
>
> Best Regards !
>
> George Gastaldi
>
> On 01/17/2013 07:10 PM, Richard Kennard wrote:
>> Are you writing code to dynamically instantiate SWT Controls and arrange them using, say, a GridLayout or a MigLayout, or across TabFolders? Because
>> Metawidget has you covered for that. It'll also wire up Eclipse's DataBinding for you (including lookups and enums). And of course you can plug in an
>> Inspector for whatever metadata you want to base it on.
>>
>> Can you point me at the code where you're instantiating the SWT Controls?
>>
>> On 18/01/2013 8:04 AM, Lincoln Baxter, III wrote:
>>> Possibly... I didn't know you supported that. Right now we are working on getting a base PoC working, so if you want, take a look at this repo, it would
>>> be the place to start:
>>>
>>> https://github.com/forge/jbosstools-forge/tree/forge2
>>>
>>> If you think Metawidget makes sense here, we can think about using it. If it works, it might be beneficial since that would mean we'd effectively get a
>>> number of UIs for free (web as well.)
>>>
>>> To fill you in on where we are, we are building dynamic UI based on metadata from Forge 2 UICommand and UIWizard instances:
>>>
>>> https://github.com/forge/core/blob/2.0/ui/api/src/main/java/org/jboss/forge/ui/UICommand.java
>>>
>>> So it could be a good fit. Please feel free to play around and let us know what you find :) There are still quite a few things in this API that will
>>> likely change as we discover what does/does not work. So more feedback is good.
>>>
>>> ~Lincoln
>>>
>>>
>>> On Thu, Jan 17, 2013 at 3:36 PM, Richard Kennard<richard at kennardconsulting.com<mailto:richard at kennardconsulting.com>> wrote:
>>>
>>> Would you guys find Metawidget useful for this? It has a runtime SWT version (see the SWT Address Book example in the distribution).
>>>
>>> If not, is there something I can do to make Metawidget more applicable for your use case?
>>>
>>> On 18/01/2013 2:47 AM, Lincoln Baxter, III wrote:
>>> >
>>> > I expect we may still have problems with enums, but for now... as long as we avoid any Final types in the interfaces, and stick to using interfaces, it
>>> > should be tolerable :)
>>> >
>>> > ---
>>> > Lincoln Baxter's Droid
>>> > http://ocpsoft.org
>>> > "Keep it Simple"
>>> >
>>> > On Jan 17, 2013 6:18 AM, "George Gastaldi"<ggastald at redhat.com<mailto:ggastald at redhat.com> <mailto:ggastald at redhat.com
>>> <mailto:ggastald at redhat.com>>> wrote:
>>> >
>>> > Yes !!!! Congratulations on making the lookup work also. Now things are getting real :)
>>> >
>>> > Em 17/01/2013, às 04:01, "Lincoln Baxter, III"<lincolnbaxter at gmail.com<mailto:lincolnbaxter at gmail.com> <mailto:lincolnbaxter at gmail.com
>>> <mailto:lincolnbaxter at gmail.com>>> escreveu:
>>> >
>>> >> Thanks George and Koen for mocking out the Eclipse UI functionality so well that when I got the Forge runtime bit working, this was possible
>>> without
>>> >> any code changes!
>>> >>
>>> >> Extremely rewarding to see!
>>> >>
>>> >> <ForgeDynamicWizard.png>
>>> >>
>>> >> --
>>> >> Lincoln Baxter, III
>>> >> http://ocpsoft.org
>>> >> "Simpler is better."
>>> >> _______________________________________________
>>> >> forge-dev mailing list
>>> >> forge-dev at lists.jboss.org<mailto:forge-dev at lists.jboss.org> <mailto:forge-dev at lists.jboss.org<mailto:forge-dev at lists.jboss.org>>
>>> >> https://lists.jboss.org/mailman/listinfo/forge-dev
>>> >
>>> > _______________________________________________
>>> > forge-dev mailing list
>>> > forge-dev at lists.jboss.org<mailto:forge-dev at lists.jboss.org> <mailto:forge-dev at lists.jboss.org<mailto:forge-dev at lists.jboss.org>>
>>> > https://lists.jboss.org/mailman/listinfo/forge-dev
>>> >
>>> >
>>> >
>>> > _______________________________________________
>>> > forge-dev mailing list
>>> > forge-dev at lists.jboss.org<mailto:forge-dev at lists.jboss.org>
>>> > https://lists.jboss.org/mailman/listinfo/forge-dev
>>>
>>> _______________________________________________
>>> forge-dev mailing list
>>> forge-dev at lists.jboss.org<mailto:forge-dev at lists.jboss.org>
>>> https://lists.jboss.org/mailman/listinfo/forge-dev
>>>
>>>
>>>
>>>
>>> --
>>> Lincoln Baxter, III
>>> http://ocpsoft.org
>>> "Simpler is better."
>>>
>>>
>>> _______________________________________________
>>> forge-dev mailing list
>>> forge-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/forge-dev
>> _______________________________________________
>> forge-dev mailing list
>> forge-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/forge-dev
> _______________________________________________
> forge-dev mailing list
> forge-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev
>
>
More information about the forge-dev
mailing list