Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2007 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 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 137-143
Link Here
|
137 |
} |
137 |
} |
138 |
|
138 |
|
139 |
Document document= new Document(content); |
139 |
Document document= new Document(content); |
140 |
return rewrite.rewriteAST(document, null); |
140 |
return rewrite.rewriteAST(document, cu.getJavaProject().getOptions(true)); |
141 |
} finally { |
141 |
} finally { |
142 |
done(); |
142 |
done(); |
143 |
} |
143 |
} |
Lines 162-168
Link Here
|
162 |
if (rewriter == null) |
162 |
if (rewriter == null) |
163 |
return document.get(); |
163 |
return document.get(); |
164 |
|
164 |
|
165 |
TextEdit edits = rewriter.rewriteAST(document, null); |
165 |
TextEdit edits = rewriter.rewriteAST(document, unit.getJavaProject().getOptions(true)); |
166 |
|
166 |
|
167 |
RangeMarker[] markers = null; |
167 |
RangeMarker[] markers = null; |
168 |
if (this.positions != null) { |
168 |
if (this.positions != null) { |