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 201907 - use the Desktop API to open unknown files
Summary: use the Desktop API to open unknown files
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-09 19:56 UTC by tim_sa
Modified: 2011-11-04 06:20 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tim_sa 2011-09-09 19:56:38 UTC
[ JDK VERSION : 1.7 ]

If a file type is not known to NetBeans then it should pass it on to the
Desktop API (
http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/desktop_api
/ ) to see if the underlying system can open it.

As an example NetBeans tries to open up a .docx file (which understandably
fails) At this point it should be passed to the underlying system to see if it
has better luck opening the file- if there is a compatible application
available to the system then the file will be opened.
Comment 1 Jaroslav Tulach 2011-11-04 06:20:20 UTC
We use desktop API to open unknown files, but docx is not unknown, it is a ZIP file. 

Feel free to donate a patch for better handling of it.