本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例5: getContentAssistantProcessors
import org.eclipse.che.ide.api.editor.codeassist.CodeAssistProcessor; //导入依赖的package包/类
@Override
public Map<String, CodeAssistProcessor> getContentAssistantProcessors() {
return codeAssist;
}
示例6: getContentAssistantProcessors
import org.eclipse.che.ide.api.editor.codeassist.CodeAssistProcessor; //导入依赖的package包/类
@Override
public Map<String, CodeAssistProcessor> getContentAssistantProcessors() {
return null;
}
示例7: getContentAssistantProcessors
import org.eclipse.che.ide.api.editor.codeassist.CodeAssistProcessor; //导入依赖的package包/类
@Override
public Map<String, CodeAssistProcessor> getContentAssistantProcessors() {
return this.codeAssistProcessors;
}
示例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();