本文整理匯總了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();