Netbeans Use System Desktop - plugin detail

Use System default editors via java.awt.Desktop

n/a
Plugin owner: manikantannaren
Website: https://github.com/manikantannaren/mynetbeans/tree/master/NB-Use-System-Desktop
Added: 2015-03-03
License: Apache 2.0 License
Category: Utilities
Downloaded: 769 times
Rating:
 0, by 0 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.01 MB   Last Update: 2016-10-26

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

Upgraded to NetBeans 8.2 platform

Verifications for NetBeans versions

8.2 verification PASSED See verification details
Download plugin   Download size: 0.01 MB   Last Update: 2015-03-03

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version



Verifications for NetBeans versions

8.0 verification PASSED See verification details


Introduction

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

Reporting Issues

Please report issues at Netbeans Use System Desktop on Github with the prefix [NB-Use-System-Desktop]

Known 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. When file association are not set; For example for manifest.mf file there might not be a file association. In these case you get an IOException which is shown to the user.
  5. Tested Netbeans platforms - Netbeans 8 and Java SE 7 and up.
  6. Tested on OS - Win 7, Windows 8, Mac OS X - Yosemite.
  7. BIG NOTE: If an application is not associated with the given file, the behaviour is non-consistent. Some times the Open With dialog appears, sometimes hidden behind the IDE. A few occations I have noticed exceptions in the log without hampering the behaviour of Netbeans

[ You have to be logged in to be able to comment. ]

User Comments

There are no comments yet.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo