Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的应用程序中有一个RadioGroupFieldEditor字段,该字段在内部添加到FieldEditorPreferencePageusingaddField()方法中。
RadioGroupFieldEditor
FieldEditorPreferencePage
addField()
我已经为该字段添加了,但是当我选择该值时setPropertyChangeListener(new IPropertyChangeListener(),控件不会出现。IPropertyChangeListener
setPropertyChangeListener(new IPropertyChangeListener()
IPropertyChangeListener
FieldEditorPreferencePage已经实现了该接口IPropertyChangeListener,并将集合设置为您添加到 PreferencePage 的每个 FieldEditor 的侦听器。只需覆盖该propertyChange(PropertyChangeEvent event)方法。不要忘记super.propertyChange(event)在那里打电话,因为它会检查某些事件。
propertyChange(PropertyChangeEvent event)
super.propertyChange(event)