Package org.erlide.ui.editors.erl.correction

Source Code of org.erlide.ui.editors.erl.correction.MarkerQuickFixExecutor

package org.erlide.ui.editors.erl.correction;

import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IMarker;
import org.eclipse.jface.text.quickassist.IQuickAssistInvocationContext;
import org.erlide.engine.ErlangEngine;
import org.erlide.engine.model.IErlModel;
import org.erlide.engine.model.erlang.IErlModule;

public class MarkerQuickFixExecutor extends QuickFixExecutor {

    protected IErlModule module;

    @Override
    public void setMarker(final IMarker marker) {
        super.setMarker(marker);

        final IErlModel model = ErlangEngine.getInstance().getModel();
        module = model.findModule((IFile) marker.getResource());
    }

    @Override
    public boolean appliesAt(final IQuickAssistInvocationContext invocationContext) {
        return false;
    }

}
TOP

Related Classes of org.erlide.ui.editors.erl.correction.MarkerQuickFixExecutor

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.