> Yves, > >> XWT has a package of metamodel service. In most of the case, the model >> UI >> comes directly from SWT via reflection. But in some case, we need to >> complete/enhance it since SWT is not model-base. And user can define >> their >> own metaclass. > > OK. Is this a model of the mapping from XML tags and attributes to calls > to the SWT API? Do you have an example of such a model?
It is in thie bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=260289 For sure, it is little out of date. We need a XWTResourceImp to manage the serialization of XWT resource for EMF. For this task, I make a call. We need some helps. > > > Mainly, if the home-made widget respects Java Bean specification. > > There is nothing to do. > > That's because reflection is used, right? yes. > > > Otherwise, you need to create the metaclass and register in > > XWT: XWT.registerMetaclass(IMetaclass). > > I could look it up in the code, but perhaps you could explain what > information the IMetaclass includes? Very simple: Properties, Events and superclasses. yves > > Hallvard > _______________________________________________ > e4-dev mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/e4-dev > _______________________________________________ e4-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/e4-dev
