Hi,
I am trying to add additional functionality when modifying the preferences of a java project, more precisely in preference "Select JRE for the project build path" when modifying the "JRE System Library".
According to what I investigated, I should modify my plugin.xml by adding the following:
<extension point="org.eclipse.core.runtime.preferences">
<initializer
class="my.package.ProjectPreferenceInitializer"
id="my.package.projectPreferenceInitializer"/>
<modifier
class="my.package.ProjectPreferenceModifier"
id="my.package.projectPreferenceMofidier"
name="Your Preference Modifier"/>
</extension>
Here the ProjectPreferenceInitializer class works correctly, but for the Modifier it does not work as expected. My ProjectPreferenceModifier class is shown below:
public class ProjectPreferenceModifier implements IPreferenceChangeListener {
@Override
public void preferenceChange(PreferenceChangeEvent event) {
System.out.println("");
}
}
Any help will be appreciated.
Thanks!