### Eclipse Workspace Patch 1.0 #P org.eclipse.pde.ui Index: src/org/eclipse/pde/internal/ui/editor/product/ProductInputContext.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/product/ProductInputContext.java,v retrieving revision 1.8 diff -u -r1.8 ProductInputContext.java --- src/org/eclipse/pde/internal/ui/editor/product/ProductInputContext.java 16 Jan 2008 17:08:18 -0000 1.8 +++ src/org/eclipse/pde/internal/ui/editor/product/ProductInputContext.java 8 Mar 2008 21:37:18 -0000 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2006 IBM Corporation and others. + * Copyright (c) 2005, 2008 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 @@ -7,6 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation + * Benjamin Cabe - bug 97149 *******************************************************************************/ package org.eclipse.pde.internal.ui.editor.product; @@ -91,6 +92,17 @@ } } + public void doRevert() { + fEditOperations.clear(); + IProductModel model = (IProductModel) getModel(); + try { + InputStream is = ((IFile) model.getUnderlyingResource()).getContents(); + model.reload(is, true); + getEditor().doRevert(); + } catch (CoreException e) { + } + } + protected String getPartitionName() { return "___prod_partition"; //$NON-NLS-1$ } #P org.eclipse.pde.core Index: src/org/eclipse/pde/internal/core/product/JREInfo.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/product/JREInfo.java,v retrieving revision 1.9 diff -u -r1.9 JREInfo.java --- src/org/eclipse/pde/internal/core/product/JREInfo.java 18 Jan 2008 21:16:23 -0000 1.9 +++ src/org/eclipse/pde/internal/core/product/JREInfo.java 8 Mar 2008 21:37:19 -0000 @@ -61,7 +61,7 @@ IPath old = fJVMWin; fJVMWin = jreContainerPath; if (isEditable()) - firePropertyChanged(JRE_LIN, old, fJVMLin); + firePropertyChanged(JRE_WIN, old, fJVMWin); } else if (Platform.OS_LINUX.equals(os)) { IPath old = fJVMLin; fJVMLin = jreContainerPath; @@ -71,12 +71,12 @@ IPath old = fJVMMac; fJVMMac = jreContainerPath; if (isEditable()) - firePropertyChanged(JRE_LIN, old, fJVMLin); + firePropertyChanged(JRE_MAC, old, fJVMMac); } else if (Platform.OS_SOLARIS.equals(os)) { IPath old = fJVMSol; fJVMSol = jreContainerPath; if (isEditable()) - firePropertyChanged(JRE_LIN, old, fJVMLin); + firePropertyChanged(JRE_SOL, old, fJVMSol); } }