• Post Reply Bookmark Topic Watch Topic
  • New Topic

RadioGroupFieldEditor setPropertyChangeListener  RSS feed

 
akshay deepak
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to Jface/ SWT.

I am trying to add a IPropertyChangeListener to a RadioGroupFieldEditor by
setPropertyChangeListener(...) method.

RadioGroupFieldEditor is inturn added to a FieldEditorPreferencePage by
addField(...) method.

However, I dont get control to the registered IPropertyChangeListener when any of the buttons is selected.

Am I missing anything while registering IPropertyChangeListener ?

~Akshay
 
igor ganapolsky
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming radioEditor is an instance of RadioGroupFieldEditor,
then have you tried something like this:
radioEditor.setPropertyChangeListener(new IPropertyChangeListener(){
public void propertyChange(PropertyChangeEvent event) {
...... your event handling code ......
}
});
 
Campbell Ritchie
Sheriff
Posts: 53779
128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch, Igor.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!