corner imagecorner image
IDEPlatformPluginsDocs & SupportCommunityPartners

Use system desktop - plugin detail

Use System default editors via java.awt.Desktop

NetBeans Plugin - Use system desktop
Plugin owner: manikantannaren
Website: http://manikantans-netbeans.blogspot.com/2008/08/netbeans61-plugin-use-system-desktop.html
Added: 2008-06-11
Last updated: 2012-04-03
NetBeans Versions: 7.0, 7.1
License: Sun Public License
Category: NetBeans Rich Client Platform
Size: 0.01 MB
Downloaded: 520 times
Rating:
 0, by 0 users


Download plugin

Verifications for NetBeans versions

6.1 verification PASSED See verification details
6.5 verification PASSED See verification details
6.7 verification PASSED See verification details

Introduction

In Java 6 a new class is 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 three actions, Open, View in browser and send by mail. Each of these uses the Desktop.edit/open, browse and mail methods.
Caveat Emptor - Known 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 introduced 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. 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. Works with Netbeans 6.1 and JDK6 only Tested Platforms - Netbeans 6.1 and JDK6 Update 10 on Windows XP BIG NOTE: If an application is not associated with the given file. it does not bring up the "Open With" dialog

What's new in this version

Updated license for CDDL and provided a new signer certificate. Initial install will ask for verify the certificate. Requires Java 6

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

User Comments

There are no comments yet.