google-code-export / swtxml

Automatically exported from code.google.com/p/swtxml
1 stars 1 forks source link

Method for accessing elements by id, without annotation #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Is it possible to access an element/widget by id, without annotation?

Not sure how SWTXML works, but it would be nice to be able to do something like 
this:

public class TestView extends SwtXmlComposite {

    public Button button_id;

    public TestView(Composite parent, int style) {
        super(parent, style);
        button_id = this.getObjectByID("button_id")
    }

-------------

Such a method will ease the usage of SWTXML from Jython.

Original issue reported on code.google.com by adiroi...@gmail.com on 21 Jul 2010 at 2:11