1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 10:16:03 +02:00

added document field to have access to it if needed

This commit is contained in:
Alena Laskavaia 2010-07-22 02:33:28 +00:00
parent b282976dfa
commit 4531b0f287

View file

@ -20,9 +20,11 @@ import org.eclipse.jface.text.IDocument;
public abstract class AbstractAstRewriteQuickFix extends
AbstractCodanCMarkerResolution {
private IDocument document;
@Override
public void apply(final IMarker marker, IDocument document) {
try {
this.document = document;
openEditor(marker).doSave(new NullProgressMonitor());
IIndex index;
try {
@ -55,4 +57,11 @@ public abstract class AbstractAstRewriteQuickFix extends
* @param r
*/
public abstract void modifyAST(IIndex index, IMarker marker);
/**
* @return the document
*/
public IDocument getDocument() {
return document;
}
}