Java 类org.eclipse.jface.text.quickassist.IQuickAssistAssistant 实例源码

项目:Pydev    文件:PyEditConfiguration.java   
@Override
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
    // create a content assistant:
    PyCorrectionAssistant assistant = new PyCorrectionAssistant();

    // next create a content assistant processor to populate the completions window
    IQuickAssistProcessor processor = new PythonCorrectionProcessor(this.getEdit());

    // Correction assist works on all
    assistant.setQuickAssistProcessor(processor);
    assistant.setInformationControlCreator(getInformationControlCreator(sourceViewer));

    //delay and auto activate set on PyContentAssistant constructor.

    return assistant;
}
项目:bts    文件:XtextSourceViewerConfiguration.java   
@Override
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
    if (sourceViewer.isEditable()) {
        if (quickAssistant == null)
            quickAssistant = quickAssistAssistentProvider.get();
        return quickAssistant;
    }
    return null;
}
项目:KaiZen-OpenAPI-Editor    文件:JsonSourceViewerConfiguration.java   
@Override
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
    QuickAssistAssistant assistant = new QuickAssistAssistant();
    assistant.setQuickAssistProcessor(new JsonQuickAssistProcessor(new QuickFixer()));
    assistant.setInformationControlCreator(getInformationControlCreator(sourceViewer));
    return assistant;
}
项目:Eclipse-Postfix-Code-Completion    文件:JavaSourceViewerConfiguration.java   
@Override
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
    if (getEditor() != null) {
        JavaCorrectionAssistant assistant= new JavaCorrectionAssistant(getEditor());
        assistant.setRestoreCompletionProposalSize(getSettings("quick_assist_proposal_size")); //$NON-NLS-1$
        return assistant;
    }
    return null;
}
项目:Eclipse-Postfix-Code-Completion    文件:PropertiesFileSourceViewerConfiguration.java   
@Override
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
    if (getEditor() != null) {
        PropertiesCorrectionAssistant assistant= new PropertiesCorrectionAssistant(getEditor());
        assistant.setRestoreCompletionProposalSize(JavaPlugin.getDefault().getDialogSettingsSection("quick_assist_proposal_size")); //$NON-NLS-1$
        return assistant;
    }
    return null;
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:JavaSourceViewerConfiguration.java   
@Override
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
    if (getEditor() != null) {
        JavaCorrectionAssistant assistant= new JavaCorrectionAssistant(getEditor());
        assistant.setRestoreCompletionProposalSize(getSettings("quick_assist_proposal_size")); //$NON-NLS-1$
        return assistant;
    }
    return null;
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:PropertiesFileSourceViewerConfiguration.java   
@Override
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
    if (getEditor() != null) {
        PropertiesCorrectionAssistant assistant= new PropertiesCorrectionAssistant(getEditor());
        assistant.setRestoreCompletionProposalSize(JavaPlugin.getDefault().getDialogSettingsSection("quick_assist_proposal_size")); //$NON-NLS-1$
        return assistant;
    }
    return null;
}
项目:eclipse-batch-editor    文件:BatchSourceViewerConfiguration.java   
@Override
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
    /* currently we avoid the default quick assistence parts (spell checking etc.)*/
    return null;
}
项目:eclipse-bash-editor    文件:BashSourceViewerConfiguration.java   
@Override
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
    /* currently we avoid the default quick assistence parts (spell checking etc.)*/
    return null;
}
项目:egradle    文件:AbstractGroovySourceViewerConfiguration.java   
@Override
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
    /* currently we avoid the default quick assitence parts (spell checking etc.)*/
    return null;
}
项目:DarwinSPL    文件:DwprofileSourceViewerConfiguration.java   
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
    if (quickAssistAssistant == null) {
        quickAssistAssistant = new de.darwinspl.preferences.resource.dwprofile.ui.DwprofileQuickAssistAssistant(resourceProvider, annotationModelProvider);
    }
    return quickAssistAssistant;
}
项目:DarwinSPL    文件:HyexpressionSourceViewerConfiguration.java   
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
    if (quickAssistAssistant == null) {
        quickAssistAssistant = new eu.hyvar.feature.expression.resource.hyexpression.ui.HyexpressionQuickAssistAssistant(resourceProvider, annotationModelProvider);
    }
    return quickAssistAssistant;
}
项目:DarwinSPL    文件:HyvalidityformulaSourceViewerConfiguration.java   
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
    if (quickAssistAssistant == null) {
        quickAssistAssistant = new eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaQuickAssistAssistant(resourceProvider, annotationModelProvider);
    }
    return quickAssistAssistant;
}
项目:DarwinSPL    文件:HydatavalueSourceViewerConfiguration.java   
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
    if (quickAssistAssistant == null) {
        quickAssistAssistant = new eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueQuickAssistAssistant(resourceProvider, annotationModelProvider);
    }
    return quickAssistAssistant;
}
项目:DarwinSPL    文件:HymappingSourceViewerConfiguration.java   
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
    if (quickAssistAssistant == null) {
        quickAssistAssistant = new eu.hyvar.feature.mapping.resource.hymapping.ui.HymappingQuickAssistAssistant(resourceProvider, annotationModelProvider);
    }
    return quickAssistAssistant;
}
项目:DarwinSPL    文件:HyconstraintsSourceViewerConfiguration.java   
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
    if (quickAssistAssistant == null) {
        quickAssistAssistant = new eu.hyvar.feature.constraint.resource.hyconstraints.ui.HyconstraintsQuickAssistAssistant(resourceProvider, annotationModelProvider);
    }
    return quickAssistAssistant;
}
项目:DarwinSPL    文件:HymanifestSourceViewerConfiguration.java   
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
    if (quickAssistAssistant == null) {
        quickAssistAssistant = new eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestQuickAssistAssistant(resourceProvider, annotationModelProvider);
    }
    return quickAssistAssistant;
}
项目:anatlyzer    文件:AtlSourceViewerConfigurationExt.java   
@Override
public IQuickAssistAssistant getQuickAssistAssistant( ISourceViewer sourceViewer) {
    QuickAssistAssistant assistant= new AnalysisQuickAssistAssistant((AtlEditor) this.getEditor());
    return assistant;
}
项目:Pydev    文件:ScriptConsoleViewer.java   
public IQuickAssistAssistant getQuickFixContentAssist() {
    return fQuickAssistAssistant;
}
项目:Pydev    文件:PydevScriptConsoleSourceViewerConfiguration.java   
public PydevScriptConsoleSourceViewerConfiguration(ITextHover hover, PyContentAssistant contentAssist,
        IQuickAssistAssistant quickAssist) {
    this.hover = hover;
    this.contentAssist = contentAssist;
    this.quickAssist = quickAssist;
}
项目:Pydev    文件:PydevScriptConsoleSourceViewerConfiguration.java   
@Override
public IQuickAssistAssistant getQuickAssistAssistant(ISourceViewer sourceViewer) {
    quickAssist.setInformationControlCreator(this.getInformationControlCreator(sourceViewer));
    return quickAssist;
}
项目:Pydev    文件:ScriptConsoleViewerWrapper.java   
public IQuickAssistAssistant getQuickAssistAssistant() {
    return viewer.getQuickAssistAssistant();
}