Java 类org.eclipse.jface.text.AbstractReusableInformationControlCreator 实例源码

项目:brainfuck    文件:BfSourceViewerConfiguration.java   
@Override
public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
    ContentAssistant assistant = new ContentAssistant();
    assistant.setDocumentPartitioning(this.getConfiguredDocumentPartitioning(sourceViewer));
    CompletionProposalToggler toggler = new CompletionProposalToggler();
    assistant.setContentAssistProcessor(toggler, IDocument.DEFAULT_CONTENT_TYPE);
    assistant.setContentAssistProcessor(toggler, EditorConstants.PARTITION_TYPE_BRAINFUCK_CODE);
    assistant.addCompletionListener(toggler);       
    assistant.setStatusLineVisible(true);
    assistant.setRepeatedInvocationMode(true);
    assistant.setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_ABOVE);
    assistant.setProposalPopupOrientation(IContentAssistant.PROPOSAL_OVERLAY);
    assistant.setAutoActivationDelay(500);
    assistant.enableAutoActivation(false);

    assistant.setInformationControlCreator(new AbstractReusableInformationControlCreator() {

        @Override
        protected IInformationControl doCreateInformationControl(Shell parent) {
            return new DefaultInformationControl(parent);
        }
    });
    assistant.setContentAssistProcessor(null, EditorConstants.PARTITION_TYPE_MULTILINE_COMMENT);
    return assistant;
}
项目:DarwinSPL    文件:DwprofileQuickAssistAssistant.java   
public DwprofileQuickAssistAssistant(de.darwinspl.preferences.resource.dwprofile.IDwprofileResourceProvider resourceProvider, de.darwinspl.preferences.resource.dwprofile.ui.IDwprofileAnnotationModelProvider annotationModelProvider) {
    setQuickAssistProcessor(new de.darwinspl.preferences.resource.dwprofile.ui.DwprofileQuickAssistProcessor(resourceProvider, annotationModelProvider));
    setInformationControlCreator(new AbstractReusableInformationControlCreator() {
        public IInformationControl doCreateInformationControl(Shell parent) {
            return new DefaultInformationControl(parent, (IInformationPresenter) null);
        }
    });
}
项目:DarwinSPL    文件:HyexpressionQuickAssistAssistant.java   
public HyexpressionQuickAssistAssistant(eu.hyvar.feature.expression.resource.hyexpression.IHyexpressionResourceProvider resourceProvider, eu.hyvar.feature.expression.resource.hyexpression.ui.IHyexpressionAnnotationModelProvider annotationModelProvider) {
    setQuickAssistProcessor(new eu.hyvar.feature.expression.resource.hyexpression.ui.HyexpressionQuickAssistProcessor(resourceProvider, annotationModelProvider));
    setInformationControlCreator(new AbstractReusableInformationControlCreator() {
        public IInformationControl doCreateInformationControl(Shell parent) {
            return new DefaultInformationControl(parent, (IInformationPresenter) null);
        }
    });
}
项目:DarwinSPL    文件:HyvalidityformulaQuickAssistAssistant.java   
public HyvalidityformulaQuickAssistAssistant(eu.hyvar.context.contextValidity.resource.hyvalidityformula.IHyvalidityformulaResourceProvider resourceProvider, eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.IHyvalidityformulaAnnotationModelProvider annotationModelProvider) {
    setQuickAssistProcessor(new eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaQuickAssistProcessor(resourceProvider, annotationModelProvider));
    setInformationControlCreator(new AbstractReusableInformationControlCreator() {
        public IInformationControl doCreateInformationControl(Shell parent) {
            return new DefaultInformationControl(parent, (IInformationPresenter) null);
        }
    });
}
项目:DarwinSPL    文件:HydatavalueQuickAssistAssistant.java   
public HydatavalueQuickAssistAssistant(eu.hyvar.dataValues.resource.hydatavalue.IHydatavalueResourceProvider resourceProvider, eu.hyvar.dataValues.resource.hydatavalue.ui.IHydatavalueAnnotationModelProvider annotationModelProvider) {
    setQuickAssistProcessor(new eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueQuickAssistProcessor(resourceProvider, annotationModelProvider));
    setInformationControlCreator(new AbstractReusableInformationControlCreator() {
        public IInformationControl doCreateInformationControl(Shell parent) {
            return new DefaultInformationControl(parent, (IInformationPresenter) null);
        }
    });
}
项目:DarwinSPL    文件:HymappingQuickAssistAssistant.java   
public HymappingQuickAssistAssistant(eu.hyvar.feature.mapping.resource.hymapping.IHymappingResourceProvider resourceProvider, eu.hyvar.feature.mapping.resource.hymapping.ui.IHymappingAnnotationModelProvider annotationModelProvider) {
    setQuickAssistProcessor(new eu.hyvar.feature.mapping.resource.hymapping.ui.HymappingQuickAssistProcessor(resourceProvider, annotationModelProvider));
    setInformationControlCreator(new AbstractReusableInformationControlCreator() {
        public IInformationControl doCreateInformationControl(Shell parent) {
            return new DefaultInformationControl(parent, (IInformationPresenter) null);
        }
    });
}
项目:DarwinSPL    文件:HyconstraintsQuickAssistAssistant.java   
public HyconstraintsQuickAssistAssistant(eu.hyvar.feature.constraint.resource.hyconstraints.IHyconstraintsResourceProvider resourceProvider, eu.hyvar.feature.constraint.resource.hyconstraints.ui.IHyconstraintsAnnotationModelProvider annotationModelProvider) {
    setQuickAssistProcessor(new eu.hyvar.feature.constraint.resource.hyconstraints.ui.HyconstraintsQuickAssistProcessor(resourceProvider, annotationModelProvider));
    setInformationControlCreator(new AbstractReusableInformationControlCreator() {
        public IInformationControl doCreateInformationControl(Shell parent) {
            return new DefaultInformationControl(parent, (IInformationPresenter) null);
        }
    });
}
项目:DarwinSPL    文件:HymanifestQuickAssistAssistant.java   
public HymanifestQuickAssistAssistant(eu.hyvar.mspl.manifest.resource.hymanifest.IHymanifestResourceProvider resourceProvider, eu.hyvar.mspl.manifest.resource.hymanifest.ui.IHymanifestAnnotationModelProvider annotationModelProvider) {
    setQuickAssistProcessor(new eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestQuickAssistProcessor(resourceProvider, annotationModelProvider));
    setInformationControlCreator(new AbstractReusableInformationControlCreator() {
        public IInformationControl doCreateInformationControl(Shell parent) {
            return new DefaultInformationControl(parent, (IInformationPresenter) null);
        }
    });
}
项目:bts    文件:XtextQuickAssistAssistant.java   
protected AbstractReusableInformationControlCreator createInformationControlCreator() {
    return new AbstractReusableInformationControlCreator() {
        @Override
        public IInformationControl doCreateInformationControl(Shell parent) {
            return new DefaultInformationControl(parent, (IInformationPresenter) null);
        }
    };
}