Alissa
Alissa

Reputation: 714

NetBeans project context menu

I've created a small project in NetBeans 8 (it's not Java, in fact it's config-file to launch a tool), and I wrote several targets for it (these are shell-scripts, invoking the tool). I've mapped some of these scripts to default ant targets (clean, jar, run). But I need more targets (e.g. stop) and I would like to have these additional targets in project context menu (not in the menu on the top). But i haven't found way to do it. Does anyone know how to do this?

Upvotes: 3

Views: 3421

Answers (3)

Ben
Ben

Reputation: 2255

Creating a netbeans plugin is not very hard. It is easy to attach your own actions to the context menu of the file node, project node or of the editor.

Add your actions to

  • Projects/org-netbeans-modules-j2ee-clientproject/Actions
  • Projects/org-netbeans-modules-j2ee-earproject/Actions
  • Projects/org-netbeans-modules-j2ee-ejbjarproject/Actions
  • Projects/org-netbeans-modules-java-j2seproject/Actions

and this should cover all ant-based-project nodes.

More resources

Upvotes: 0

HEKTO
HEKTO

Reputation: 4191

For NetBeans Java Free-Form projects - you can open the Project Properties pop-up window, go to Build and Run and hit the Add button. Then you can enter Ant target name (right column) and corresponding GUI name (left column) - please see below:

Project Properties

(I hope I've got your question correctly)

Upvotes: 1

Alissa
Alissa

Reputation: 714

We've found that it's impossible to vary project's context menu except by a plugin. Also adding target shortcuts to main menu is still available and easy to make.

Upvotes: 0

Related Questions