File Type: File Recognition
See Also
The New File Type wizard creates a new File Type.
You open the New File Type wizard by right-clicking a module project, choosing New > Other and selecting File Type
from the Module Development category.
In the File Recognition page, you have to set the following:
- MIME Type. Specifies a unique Multipurpose Internet Mail Extension (MIME) type that enables
the file type to be registered in the layer.xml file. Together, the MIME type and the filename extension
or XML root element enable the IDE to distinguish one file type from another.
- by
- Filename Extension. Specifies one or more file extensions that the IDE will recognize
as belonging to the specified MIME type. The file extension can optionally be preceded by a dot.
Separators are commas, spaces, or both. Therefore, all of the following are valid:
- .abc,.def
- .abc .def
- abc def
- abc,.def ghi, .wow
- XML Root Element. Specifies a unique namespace that distinguishes
the XML file type from all other XML file types.
The value that you specify is the namespace associated with the root
element of your XML document. Note that this is not the same thing as the
name of the root element. For example, in
the following example XML document, the namespace is "sample":
<mydata xmlns="sample"></mydata>
- See Also
- About NetBeans Platform and Module Development
- About the NetBeans Platform
Legal Notices