本文整理汇总了Java中org.eclipse.che.ide.api.editor.EditorAgent.OpenEditorCallback类的典型用法代码示例。如果您正苦于以下问题:Java OpenEditorCallback类的具体用法?Java OpenEditorCallback怎么用?Java OpenEditorCallback使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OpenEditorCallback类属于org.eclipse.che.ide.api.editor.EditorAgent包,在下文中一共展示了OpenEditorCallback类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initializeEditor
import org.eclipse.che.ide.api.editor.EditorAgent.OpenEditorCallback; //导入依赖的package包/类
@Override
protected void initializeEditor(OpenEditorCallback callback) {
}
示例2: createEditor
import org.eclipse.che.ide.api.editor.EditorAgent.OpenEditorCallback; //导入依赖的package包/类
private void createEditor(final String content, OpenEditorCallback openEditorCallback) {
this.fileTypes = detectFileType(getEditorInput().getFile());
editorWidgetFactory.createEditorWidget(
fileTypes, new EditorWidgetInitializedCallback(content, openEditorCallback));
}
示例3: EditorWidgetInitializedCallback
import org.eclipse.che.ide.api.editor.EditorAgent.OpenEditorCallback; //导入依赖的package包/类
private EditorWidgetInitializedCallback(String content, OpenEditorCallback openEditorCallback) {
this.content = content;
this.openEditorCallback = openEditorCallback;
}
示例4: init
import org.eclipse.che.ide.api.editor.EditorAgent.OpenEditorCallback; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public void init(@NotNull EditorInput input, final OpenEditorCallback callback) {
this.input = input;
initializeEditor(callback);
}
示例5: initializeEditor
import org.eclipse.che.ide.api.editor.EditorAgent.OpenEditorCallback; //导入依赖的package包/类
/** Initializes this editor. */
protected abstract void initializeEditor(final OpenEditorCallback callback);
示例6: initializeEditor
import org.eclipse.che.ide.api.editor.EditorAgent.OpenEditorCallback; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
protected void initializeEditor(OpenEditorCallback callback) {
callback.onEditorOpened(this);
}
示例7: init
import org.eclipse.che.ide.api.editor.EditorAgent.OpenEditorCallback; //导入依赖的package包/类
/**
* Initializes this editor with the given input.
*
* <p>This method is automatically called shortly after the part is instantiated. It marks the
* start of the part's lifecycle.
*
* <p>Implementors of this method must examine the editor input object type to determine if it is
* understood. If not, the implementor must throw a <code>PartInitException</code>
*
* @param input the editor input
* @param callback callback with actions which should be performed when editor was initialized
*/
void init(@NotNull EditorInput input, OpenEditorCallback callback);