Re: how to recognise other xml files

Petr Kuzel <[email protected]> Wed, 21 Jul 2004 14:05:31 +0200
Newsgroups gmane.comp.java.netbeans.modules.xml.devel
Organization Sun Microsystems
Message-ID <[email protected]>
Valentin Haenel wrote:
> Hello,
> 
> i have a brief question about recognizing files with the extension .xxx as
> xml files. Basically i would like to provide a FileLoader for .xxx with the
> following capabilities:
> 
> 1) it should display .xxx files with their own custom icon, not the standard
> xml icon in the explorer.

You need your own SataObject and DataLoader. It was design
decision to have only one classification layer (and
associated "Object Types" UI) - loaders

> 2) it should provide the standard xml actions, plus a set of custom actions
> which are only applicable to .xxx files.

There are various utitily actions and cookies that you
need to provide from your DataObject/Loader. Look at
e.g. xml/schema module.

> 3) it should allow browsing of the xml content of the .xxx files in the
> explorer, and provide the standard tree-editor for these, so that the tree
> can be viewed in the explorer.

It's possible but requires a lot of work from your
side (including maintaining xml/tree-edit subproject).

   Cc.

-- 
<address>
<a href="mailto:[email protected]">Petr Kuzel</a> at Sun Microsystems :
<a href="http://www.netbeans.org/">NetBeans Java IDE</a></address>