mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
save file - otherwise refactoring does not work...
This commit is contained in:
parent
9396a7e9e9
commit
83a58cd77c
1 changed files with 2 additions and 1 deletions
|
@ -15,6 +15,7 @@ import org.eclipse.cdt.codan.ui.AbstractCodanCMarkerResolution;
|
|||
import org.eclipse.cdt.core.index.IIndex;
|
||||
import org.eclipse.core.resources.IMarker;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.NullProgressMonitor;
|
||||
import org.eclipse.jface.text.IDocument;
|
||||
|
||||
public abstract class AbstractAstRewriteQuickFix extends
|
||||
|
@ -22,7 +23,7 @@ public abstract class AbstractAstRewriteQuickFix extends
|
|||
@Override
|
||||
public void apply(final IMarker marker, IDocument document) {
|
||||
try {
|
||||
openEditor(marker);
|
||||
openEditor(marker).doSave(new NullProgressMonitor());
|
||||
IIndex index;
|
||||
try {
|
||||
index = getIndexFromMarker(marker);
|
||||
|
|
Loading…
Add table
Reference in a new issue