[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Creating a NonExistingFileEditorInput with content?

Dear all,
I'm looking for a way to open a default text editor and set some content 
programatically. Specifically, I'd like to avoid having to create a 
temporary file with the initial content anywhere. The content of the 
editor is very often just inspected by the use, or parts of it are 
cut'n'pasted into other applications, but not saved. Occasionally, I'd 
like to save the (possibly edited) content, and I'd like to have a Save 
As... dialog pop up on closing this editor's window.

I've been peeking into the "Untitled Textfile Wizard", but couldn't find 
a way to set the content of the NonExistingFileEditorInput. I appreciate 
any suggestions.

Volker

-- 
United Nations University -                       http://rcos.iist.unu.edu/~vs/
International Institute for Software Technology   Macau SAR, China