MIMEResolver, Favorites and Nodes
Hi!
I have three questions how to do things
in NetBeans Platform 6.1:
1.) I want to create a MIMEResolver
subclass that will return a MIME
type for files displayed in Favorites.
I know how to do that using layer.xml
and special file that is
registed in Services/MIMEResolver folder.
I also created my
MIMEResolver that takes a setting from
NbPreferences and returns
correct MIME for giver FileObject. How
do I now register it in defualt
Lookup?
2.) How do I use Nodes and Explorer
API to display a tree of files in
a directory?
3.) Since I don't know how to do that
I'm using Favorites to display a
tree of files. I also created a special
Action that is displayed on
popup menu when a node is right-clicked.
Of course now this Action is
tied to a MIMEs that are defined in
Services/MIMEResolver. Now if I
use my MIMEResolver. If I open a subfolder
in Favorites, will MIMEs be
resolved everytime the node is opened
or only once? I'm asking this
because I'd like to resolve MIME for
a FileObject according to
settings in NbPreferences.
Best regards,
Kovi
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
| Gregor Kovac | Gregor.Kovac@... |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| In A World Without Fences Who Needs Gates? |
| Experience Linux.
|
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~