Set/Get values for RadioGroupFieldEditor in SWT

前端 未结 1 578
故里飘歌
故里飘歌 2021-01-21 17:56

I\'m trying to add a RadioGroupFieldEditor in an Eclipse RCP application I\'m developing, but seem unable to do two key things:

  1. set the value for the radio button
相关标签:
1条回答
  • 2021-01-21 18:25

    Since this control is operating on preferences, you can set the default value in your preference initializer.

    To get the value of the control, you could gt the actual radio control via the getRadioBoxControl(Composite) method and query that object. Not the cleanest way, but it does work adequately.

    0 讨论(0)
提交回复
热议问题