Bug 97936 [build path] build path page overwrites changes in classpath
I have plugin which contribute page into the Project Properties Dialog (java project). In this page IJavaProject.setRawClasspath() called for current project. I do the following steps: 1. Open Project Properties Dialog 2. Select Java Build Path page. Do nothing with it. 3. Select "MyPage". 4. Do something which calls setRawClasspath(). (file .classpath updated with new values!) 5. Press OK. Dialog closed. oops! File .classpath updated again with old values. It reproduced with M7 and M6.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/BuildPathsPropertyPage.java
/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.internal.ui.preferences;
import java.util.Map;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.core.resources.IProject;