[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] What to do with bad/empty EditorInput?

Eclipse launches my editor with no EditorInput sort of when I double click a file resource in the explorer that has no file underneath it anymore. In other words, i created some files through Eclipse, then moved them away in the file system, but did not refresh the Eclipse Explorer. So the Files in the project don't point to anything.


I can't stop eclipse from launching my editor under these conditions. How should I handle this empty input? Should I use some kind of empty Uneditable EditPart when my EditPartFactory is called with null? Is there a way to get my Editor to close?


If I try not setting the contents of the graphical viewer at all (even to null), then eclipse gets into a dead loop when I click on the empty Editor.



--
Respectfully,


CL Gilbert

"Verily, verily, I say unto you, He that entereth not by the door() into the sheepfold{}, but climbeth up some other *way, the same is a thief and a robber." John 10:1

GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD  19AE 55B2 4CD7 80D2 0A2D

For a free Java interface to Freechess.org see http://www.rigidsoftware.com/Chess/chess.html