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/for...
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(a)kennardconsulting.com
<mailto:richard@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(a)redhat.com
<mailto:ggastald@redhat.com> <mailto:ggastald@redhat.com
<mailto:ggastald@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(a)gmail.com <mailto:lincolnbaxter@gmail.com>
<mailto:lincolnbaxter@gmail.com
<mailto:lincolnbaxter@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(a)lists.jboss.org <mailto:forge-dev@lists.jboss.org>
<mailto:forge-dev@lists.jboss.org <mailto:forge-dev@lists.jboss.org>>
>>
https://lists.jboss.org/mailman/listinfo/forge-dev
>
> _______________________________________________
> forge-dev mailing list
> forge-dev(a)lists.jboss.org <mailto:forge-dev@lists.jboss.org>
<mailto:forge-dev@lists.jboss.org <mailto:forge-dev@lists.jboss.org>>
>
https://lists.jboss.org/mailman/listinfo/forge-dev
>
>
>
> _______________________________________________
> forge-dev mailing list
> forge-dev(a)lists.jboss.org <mailto:forge-dev@lists.jboss.org>
>
https://lists.jboss.org/mailman/listinfo/forge-dev
_______________________________________________
forge-dev mailing list
forge-dev(a)lists.jboss.org <mailto:forge-dev@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(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-dev