当前位置: 首页>>代码示例>>Java>>正文


Java CodeAssistProcessor类代码示例

本文整理汇总了Java中org.eclipse.che.ide.api.editor.codeassist.CodeAssistProcessor的典型用法代码示例。如果您正苦于以下问题:Java CodeAssistProcessor类的具体用法?Java CodeAssistProcessor怎么用?Java CodeAssistProcessor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


CodeAssistProcessor类属于org.eclipse.che.ide.api.editor.codeassist包,在下文中一共展示了CodeAssistProcessor类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: canDoOperation

import org.eclipse.che.ide.api.editor.codeassist.CodeAssistProcessor; //导入依赖的package包/类
@Override
public boolean canDoOperation(int operation) {
  if (TextEditorOperations.CODEASSIST_PROPOSALS == operation) {
    Map<String, CodeAssistProcessor> contentAssistProcessors =
        getConfiguration().getContentAssistantProcessors();
    if (contentAssistProcessors != null && !contentAssistProcessors.isEmpty()) {
      return true;
    }
  }
  if (TextEditorOperations.FORMAT == operation) {
    if (getConfiguration().getContentFormatter() != null) {
      return true;
    }
  }

  if (TextEditorOperations.QUICK_ASSIST == operation) {
    if (quickAssistant != null) {
      return true;
    }
  }

  if (TextEditorOperations.SIGNATURE_HELP == operation) {
    if (getConfiguration().getSignatureHelpProvider() != null) {
      return true;
    }
  }
  return false;
}
 
开发者ID:eclipse,项目名称:che,代码行数:29,代码来源:OrionEditorPresenter.java

示例2: getContentAssistantProcessors

import org.eclipse.che.ide.api.editor.codeassist.CodeAssistProcessor; //导入依赖的package包/类
@Override
public Map<String, CodeAssistProcessor> getContentAssistantProcessors() {
  Map<String, CodeAssistProcessor> map = new HashMap<>();
  map.put(DocumentPartitioner.DEFAULT_CONTENT_TYPE, codeAssistProcessor);

  return map;
}
 
开发者ID:eclipse,项目名称:che,代码行数:8,代码来源:MacroEditorConfiguration.java

示例3: getContentAssistantProcessors

import org.eclipse.che.ide.api.editor.codeassist.CodeAssistProcessor; //导入依赖的package包/类
@Override
public Map<String, CodeAssistProcessor> getContentAssistantProcessors() {
  if (defaultProcessor.getProcessors() == null || defaultProcessor.getProcessors().size() == 0) {
    return null;
  }
  Map<String, CodeAssistProcessor> map = new HashMap<>();
  map.put(DocumentPartitioner.DEFAULT_CONTENT_TYPE, defaultProcessor);
  return map;
}
 
开发者ID:eclipse,项目名称:che,代码行数:10,代码来源:JsEditorConfiguration.java

示例4: getContentAssistantProcessors

import org.eclipse.che.ide.api.editor.codeassist.CodeAssistProcessor; //导入依赖的package包/类
@Override
public Map<String, CodeAssistProcessor> getContentAssistantProcessors() {
  if (serverCapabilities.getCompletionProvider() != null) {
    Map<String, CodeAssistProcessor> map = new HashMap<>();
    map.put(
        DocumentPartitioner.DEFAULT_CONTENT_TYPE,
        codeAssistProcessorFactory.create(serverCapabilities));
    return map;
  }

  return null;
}
 
开发者ID:eclipse,项目名称:che,代码行数:13,代码来源:LanguageServerEditorConfiguration.java

示例5: getContentAssistantProcessors

import org.eclipse.che.ide.api.editor.codeassist.CodeAssistProcessor; //导入依赖的package包/类
@Override
public Map<String, CodeAssistProcessor> getContentAssistantProcessors() {
  return codeAssist;
}
 
开发者ID:eclipse,项目名称:che-archetypes,代码行数:5,代码来源:JsonExampleEditorConfiguration.java

示例6: getContentAssistantProcessors

import org.eclipse.che.ide.api.editor.codeassist.CodeAssistProcessor; //导入依赖的package包/类
@Override
public Map<String, CodeAssistProcessor> getContentAssistantProcessors() {
  return null;
}
 
开发者ID:eclipse,项目名称:che,代码行数:5,代码来源:DefaultTextEditorConfiguration.java

示例7: getContentAssistantProcessors

import org.eclipse.che.ide.api.editor.codeassist.CodeAssistProcessor; //导入依赖的package包/类
@Override
public Map<String, CodeAssistProcessor> getContentAssistantProcessors() {
  return this.codeAssistProcessors;
}
 
开发者ID:eclipse,项目名称:che,代码行数:5,代码来源:JsJavaEditorConfiguration.java

示例8: getContentAssistantProcessors

import org.eclipse.che.ide.api.editor.codeassist.CodeAssistProcessor; //导入依赖的package包/类
/**
 * Returns the content assistant (completion) processors.
 *
 * @return the code assist processors
 */
@Nullable
Map<String, CodeAssistProcessor> getContentAssistantProcessors();
 
开发者ID:eclipse,项目名称:che,代码行数:8,代码来源:TextEditorConfiguration.java


注:本文中的org.eclipse.che.ide.api.editor.codeassist.CodeAssistProcessor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。