[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform] Re: cannot be cast to org.eclipse.ui.ide.FileStoreEditorInput
|
I agree. Having model in IEditorInput is not good idea. But what should I do
when I create new editor?
There is no any File at this moment. I don't see how I can tell editor to
create new model. I tried to pass null as IEditorInput. It doesn't work
null is not allowed.
Thank you,
Andrey
"Paul Webster" <pwebster@xxxxxxxxxx> wrote in message
news:gev161$23q$1@xxxxxxxxxxxxxxxxxxxx
> Just so you know, it's extremely not recommended that you put model
> objects in your IEditorInput itself. Read the javadoc for IEditorInput.
> Think java.io.File, it's simply a key that would allow your editor to load
> the content you need.
>
> PW
>
>
>
> --
> Paul Webster
> http://wiki.eclipse.org/Platform_Command_Framework
> http://wiki.eclipse.org/Command_Core_Expressions
> http://wiki.eclipse.org/Menu_Contributions
> http://wiki.eclipse.org/Menus_Extension_Mapping
> http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm