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 |
} |