// We want to store M2_REPO property into java classpath vars
ScopedPreferenceStore store = new ScopedPreferenceStore(
new InstanceScope(), "org.eclipse.jdt.core");
m2Repo.setPreferenceStore(store);
store.addPropertyChangeListener(new IPropertyChangeListener(){
@Override
public void propertyChange(PropertyChangeEvent event) {
// We want to erase the value if the M2_REPO was deleted from the classpath variables ui...
if( event.getProperty().equals(PreferencesConstants.M2_REPO)) {
m2Repo.load();