Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » addPropertyChangeListener(IPropertyChangeListener) not working
addPropertyChangeListener(IPropertyChangeListener) not working [message #326555] Tue, 25 March 2008 09:34
Jan Kohnert is currently offline Jan KohnertFriend
Messages: 196
Registered: July 2009
Senior Member
Hello,

I'm adding a org.eclipse.jface.util.IPropertyChangeListener to my plugins
preference store.
private class PreferenceChangeListener implements IPropertyChangeListener {
@Override
public void propertyChange(PropertyChangeEvent event) {
System.out.println("changed!");
}
}
...
MyPlugin.getDefault().getPreferenceStore().addPropertyChange Listener(new
PreferenceChangeListener());

The plugin runs fine, but when changing preferences I'll never get
informed. ("changed!) never appears.

What are I'm doing wrong?

Thanks
Previous Topic:TableViewer isn't drawing its contents.
Next Topic:Lock in WorkManager
Goto Forum:
  


Current Time: Sun Dec 22 15:43:11 GMT 2024

Powered by FUDForum. Page generated in 0.03070 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top