Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.


#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 java.awt.Desktop.edit, java.awt.Desktop.edit, java.awt.Desktop.open, java.awt.Desktop.browse and java.awt.Desktop.mail methods.

#Known behavioural issues

  1. 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.
  2. Mail - Selected file is not intriduced as an attachment since the mailto protocol does not support attachments.
  3. There are no options to set. What ever is set on the operating system will be used.
  4. 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.
  5. 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.

  1. Start NetBeans
  2. Selected Tools->Plugins
  3. In Available Plugins tab, search for NetBeans use system desktop
  4. Select the plugin
  5. Click install.