Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] MemoryEditorInput?

Hi

Is it possible to open an editor without connecting it to a file? I would like to present a String in an IEditorInput, but can't find any suitable way to do this.

IFile file = root.getFile(new Path("myfile.txt"));
FileEditorInput fileEditorInput = new FileEditorInput(file);
ITextEditor editor = (ITextEditor)page.openEditor(fileEditorInput, desc.getId());

/Jimmie

Back to the top