This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 60878 - It's impossible to create an xml file with a custom extension
Summary: It's impossible to create an xml file with a custom extension
Status: VERIFIED WORKSFORME
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@xml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-12 13:31 UTC by Kirill Sorokin
Modified: 2008-03-18 15:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill Sorokin 2005-07-12 13:31:23 UTC
When I try to create a new XML file using the new File/Folder... wizard the
'.xml' is always appended to the entered filename. For example if I want to
create an xml file named 'blah-blah.xmi', the actual file would be
'blah-blah.xmi.xml'.

There should be a possibility to create a file with a custom extension that
would be trated as XML by the IDE.

Btw, .xmi is not registered as xml/text mime type. I assume that this should be
fixed as well.
Comment 1 Jiri Kovalsky 2005-07-12 14:00:04 UTC
1. To create a file with XMI extension please use "Other" category and "Empty
File" file type.

2. In order to register XMI files as XML objects, please follow this procedure:

2.1 Invoke "Tools | Options" from main menu.
2.2. Select "IDE Configuration|System|Object Types|XML Objects" node.
2.3. Click "..." button next to value of "Extensions and MIME Types" property.
2.4. "Add" xmi and text/xmi items to the list and push "OK" afterwards.
2.5. "Close" the options window.

Now all your .xmi files will have XML functionality in the editor. Resolving as
works for us since required functionality is available in the IDE.
Comment 2 Mikhail Matveev 2008-03-18 15:58:40 UTC
Verified