#About NetBeans Use System Desktop
In Java 6 a new class was introduced - java.awt.Desktop, using which you can leave file handling to the underlying operating system's file associations. For ex. Notepad can be the assigned editor for .txt files. Or you can view the System file explorer from the selected node. You might want to view files within the browser.
This plugin has four actions, Open, Browse, Edit and send by mail. Each of these uses the
#Known behavioural issues
- Behaviour is not guaranteed to be as expected. For example browse and open can do the same thing - open in the default editor. My testing has shown that only html and xml files open properly in browser.
- Mail - Selected file is not intriduced as an attachment since the mailto protocol does not support attachments.
- There are no options to set. What ever is set on the operating system will be used.
- Tested Platforms - Netbeans 8 and Java SE 7 and up. The plugin has been developer tested on Win 7, Windows 8, Mac OS X - Yosemite.
- If an application is not associated with the given file, the behaviour is non-consistent. Some times the Open With dialog appears, sometimes it is hidden behind the IDE and many times, throws Exception
##Getting the plugin ###From NetBeans plugin portal You can download the plugin from the Netbeans plugin portal ###Using the NetBeans plugin manager This plugin is verified for NetBeans 8.0.* and can be installed using the plugin manager.
- Start NetBeans
- Selected Tools->Plugins
- In Available Plugins tab, search for
NetBeans use system desktop
- Select the plugin
- Click install.