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

Summary: It's impossible to create an xml file with a custom extension
Product: xml Reporter: Kirill Sorokin <ksorokin>
Component: CodeAssignee: issues@xml <issues>
Status: VERIFIED WORKSFORME    
Severity: blocker    
Priority: P4    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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