Skip to content

DevFaqActionAddFileMime

Antonio Vieiro edited this page Jan 25, 2018 · 1 revision

DevFaqActionAddFileMime

How do I add an action to a file of a given mime-type?

The simplest way is to run File > New…​ > Module Development > Action which creates an action for you and registers it in your layer.xml.

  1. On the first tab, choose Conditionally Enabled action and select DataObject as the cookie class.

  2. On the second tab, check File Type Context Menu Item and choose the MIME type and position.

You can use text/html, text/x-java, text/x-ant+xml, text/x-jsp, image/png, etc.

Apache Migration Information

The content in this page was kindly donated by Oracle Corp. to the Apache Software Foundation.

This page was exported from http://wiki.netbeans.org/DevFaqActionAddFileMime , that was last modified by NetBeans user Jglick on 2011-12-14T00:10:43Z.

NOTE: This document was automatically converted to the AsciiDoc format on 2018-01-26, and needs to be reviewed.

Clone this wiki locally