當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。