Skip to main content

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

It is possible, you just need to implement IStorage and IStorageEditorInput accordingly.
 
HTH
Toni
 


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Jimmie Eriksson
Sent: Wednesday, May 21, 2008 11:19 AM
To: cdt-dev@xxxxxxxxxxx
Subject: [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