In
Convert your TopComponent to a MultiViewElement I explained, in
the first part of that blog entry, how to open a file represented
by a node in an explorer view into a TopComponent (instead of into
the Source Editor, where a file opens by default). Basically, as
described in that blog entry, you need to extend
org.openide.loaders.OpenSupport and implement
org.openide.cookies.OpenCookie and
org.openide.cookies.CloseCookie. Not very nice code, but
it works perfectly.
However,...