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


Java DefaultTextEditorConfiguration类代码示例

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


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

示例1: getEditor

import org.eclipse.che.ide.api.editor.editorconfig.DefaultTextEditorConfiguration; //导入依赖的package包/类
@Override
public TextEditor getEditor() {
  if (editorBuilder == null) {
    Log.debug(
        AbstractTextEditorProvider.class,
        "No builder registered for default editor type - giving up.");
    return null;
  }

  final TextEditor editor = editorBuilder.buildEditor();
  editor.initialize(new DefaultTextEditorConfiguration());
  return editor;
}
 
开发者ID:eclipse,项目名称:che,代码行数:14,代码来源:LanguageServerEditorProvider.java

示例2: createEditor

import org.eclipse.che.ide.api.editor.editorconfig.DefaultTextEditorConfiguration; //导入依赖的package包/类
@Override
public Promise<EditorPartPresenter> createEditor(VirtualFile file) {
  if (file instanceof File) {
    File resource = (File) file;

    Promise<ServerCapabilities> promise =
        registry.getOrInitializeServer(resource.getProject().getPath(), file);
    return promise.then(
        new Function<ServerCapabilities, EditorPartPresenter>() {
          @Override
          public EditorPartPresenter apply(ServerCapabilities capabilities)
              throws FunctionException {
            if (editorBuilder == null) {
              Log.debug(
                  AbstractTextEditorProvider.class,
                  "No builder registered for default editor type - giving up.");
              return null;
            }

            final TextEditor editor = editorBuilder.buildEditor();
            TextEditorConfiguration configuration =
                capabilities == null
                    ? new DefaultTextEditorConfiguration()
                    : editorConfigurationFactory.build(editor, capabilities);
            editor.initialize(configuration);
            return editor;
          }
        });
  }
  return null;
}
 
开发者ID:eclipse,项目名称:che,代码行数:32,代码来源:LanguageServerEditorProvider.java

示例3: buildEditor

import org.eclipse.che.ide.api.editor.editorconfig.DefaultTextEditorConfiguration; //导入依赖的package包/类
@Override
public TextEditor buildEditor() {
  final OrionEditorPresenter editor = orionTextEditorProvider.get();
  editor.initialize(new DefaultTextEditorConfiguration());
  return editor;
}
 
开发者ID:eclipse,项目名称:che,代码行数:7,代码来源:OrionEditorBuilder.java

示例4: getEditorConfiguration

import org.eclipse.che.ide.api.editor.editorconfig.DefaultTextEditorConfiguration; //导入依赖的package包/类
/** Returns configuration for initializing an editor returned by {@link #getEditor()} method. */
protected TextEditorConfiguration getEditorConfiguration() {
  return new DefaultTextEditorConfiguration();
}
 
开发者ID:eclipse,项目名称:che,代码行数:5,代码来源:AbstractTextEditorProvider.java


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