开发者

Resources for data binding with WindowBuilder with SWT/JFace

开发者 https://www.devze.com 2023-01-25 07:17 出处:网络
I just started creating a SWT/JFace application using the (now free) WindowBuilder from Google (previously instantiations).

I just started creating a SWT/JFace application using the (now free) WindowBuilder from Google (previously instantiations).

I fin开发者_高级运维d the Data binding part difficult although it -should- make it easier for me.

For instance, I cannot bind the enabling-property of a button to a (myself defined) boolean function.

Are there any resources (demos, text, tutorials, examples) about using the WindowBuilder GUI and/or the data binding principle?

The information found on the google page or the instantiations page did not help me enough.


For what it's worth:

bindingContext.bindValue(
    new ComputedValue() {
      public Object calculate() {
        // calculate the enablement using the value of other, previously
        // created observables.
      }
    },
    WidgetProperties.enabled().observe(theButton)
  );

The Eclipse newsgroups are a great place to ask these questions. Try the eclipse.platform.jface newsgroup.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号