View | Details | Raw Unified | Return to bug 97149
Collapse All | Expand All

(-)src/org/eclipse/pde/internal/ui/editor/product/ProductInputContext.java (-1 / +13 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2005, 2006 IBM Corporation and others.
2
 * Copyright (c) 2005, 2008 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 7-12 Link Here
7
 *
7
 *
8
 * Contributors:
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
9
 *     IBM Corporation - initial API and implementation
10
 *     Benjamin Cabe <benjamin.cabe@anyware-tech.com> - bug 97149
10
 *******************************************************************************/
11
 *******************************************************************************/
11
package org.eclipse.pde.internal.ui.editor.product;
12
package org.eclipse.pde.internal.ui.editor.product;
12
13
Lines 91-96 Link Here
91
		}
92
		}
92
	}
93
	}
93
94
95
	public void doRevert() {
96
		fEditOperations.clear();
97
		IProductModel model = (IProductModel) getModel();
98
		try {
99
			InputStream is = ((IFile) model.getUnderlyingResource()).getContents();
100
			model.reload(is, true);
101
			getEditor().doRevert();
102
		} catch (CoreException e) {
103
		}
104
	}
105
94
	protected String getPartitionName() {
106
	protected String getPartitionName() {
95
		return "___prod_partition"; //$NON-NLS-1$
107
		return "___prod_partition"; //$NON-NLS-1$
96
	}
108
	}
(-)src/org/eclipse/pde/internal/core/product/JREInfo.java (-3 / +3 lines)
Lines 61-67 Link Here
61
			IPath old = fJVMWin;
61
			IPath old = fJVMWin;
62
			fJVMWin = jreContainerPath;
62
			fJVMWin = jreContainerPath;
63
			if (isEditable())
63
			if (isEditable())
64
				firePropertyChanged(JRE_LIN, old, fJVMLin);
64
				firePropertyChanged(JRE_WIN, old, fJVMWin);
65
		} else if (Platform.OS_LINUX.equals(os)) {
65
		} else if (Platform.OS_LINUX.equals(os)) {
66
			IPath old = fJVMLin;
66
			IPath old = fJVMLin;
67
			fJVMLin = jreContainerPath;
67
			fJVMLin = jreContainerPath;
Lines 71-82 Link Here
71
			IPath old = fJVMMac;
71
			IPath old = fJVMMac;
72
			fJVMMac = jreContainerPath;
72
			fJVMMac = jreContainerPath;
73
			if (isEditable())
73
			if (isEditable())
74
				firePropertyChanged(JRE_LIN, old, fJVMLin);
74
				firePropertyChanged(JRE_MAC, old, fJVMMac);
75
		} else if (Platform.OS_SOLARIS.equals(os)) {
75
		} else if (Platform.OS_SOLARIS.equals(os)) {
76
			IPath old = fJVMSol;
76
			IPath old = fJVMSol;
77
			fJVMSol = jreContainerPath;
77
			fJVMSol = jreContainerPath;
78
			if (isEditable())
78
			if (isEditable())
79
				firePropertyChanged(JRE_LIN, old, fJVMLin);
79
				firePropertyChanged(JRE_SOL, old, fJVMSol);
80
		}
80
		}
81
	}
81
	}

Return to bug 97149