Help with replacing XWT #775
-
Hello, our project (Eclipse based IDE) uses XWT xml UI files not only for displaying custom UIs, but also for code generation purposes. With XWT gone, the UI xml files are also gone. Replacing the UIs is not difficult: we just need to refactor our editors and custom components in order to use the standard java swt windowbuilder API. The issue is with our own code generation feature: we need a way to get information about the structure and components in a UI.
Do I see it correct? Are there other options in your opinion? Thank you very much for the support |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
FYI, the XWT contribution to SimRel got re-enabled... |
Beta Was this translation helpful? Give feedback.
I don't think it makes sense to have this functionality directly within WindowBuilder. However, you can use the
org.eclipse.wb.core.java.rootProcessors
extension point to inject your own logic. You need to contribute your own implementation of IRootProcessor which, form what I remember, should be called whenever the Java code has been parsed by WindowBuilder.If you then apply the ObjectInfoVisitor on the root node, you should go through all UI elements that make up the Java class. This information you can collect and store in whatever format you want.
Would this fit into your workflow?