Package org.bndtools.core.editors.pkginfo

Source Code of org.bndtools.core.editors.pkginfo.PackageInfoSourceViewerConfiguration

package org.bndtools.core.editors.pkginfo;

import org.bndtools.core.editors.BndMarkerQuickAssistProcessor;
import org.eclipse.jface.text.quickassist.IQuickAssistAssistant;
import org.eclipse.jface.text.quickassist.QuickAssistAssistant;
import org.eclipse.jface.text.source.ISourceViewer;
import org.eclipse.ui.editors.text.TextSourceViewerConfiguration;

public class PackageInfoSourceViewerConfiguration extends TextSourceViewerConfiguration {

    @Override
    public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
        QuickAssistAssistant assistant = new QuickAssistAssistant();

        assistant.setQuickAssistProcessor(new BndMarkerQuickAssistProcessor());

        return assistant;
    }

}
TOP

Related Classes of org.bndtools.core.editors.pkginfo.PackageInfoSourceViewerConfiguration

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.