使用SWT/JFace与WindowBuilder绑定数据的参考资料

时间:2022-09-11 18:48:01

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

我刚刚开始使用谷歌(以前的实例化)中的(现在免费的)WindowBuilder创建SWT/JFace应用程序。

I find 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?

是否有关于使用WindowBuilder GUI和/或数据绑定原则的资源(演示、文本、教程、示例)?

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

在谷歌页面或实例化页面上找到的信息对我的帮助还不够。

1 个解决方案

#1


1  

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.

Eclipse新闻组是提出这些问题的好地方。eclipse.platform试。jface新闻组。

#1


1  

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.

Eclipse新闻组是提出这些问题的好地方。eclipse.platform试。jface新闻组。