How to Add tooltip to action registered using @ActionRegistration
Todd Stevenson <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <[email protected]> |
I used the Netbeans wizard to create an action to use in my editor pane, but cannot see how to set a tooltip for this action. I can see that all the other actions in the editor pane have tooltips. How can I set the tooltip:
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.ihc.cem.ceml.cedar.modules.editor.actions;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import org.openide.awt.ActionID;
import org.openide.awt.ActionReference;
import org.openide.awt.ActionReferences;
import org.openide.awt.ActionRegistration;
import org.openide.cookies.EditorCookie;
import org.openide.util.NbBundle;
/**
*
* @author dtsteven
*/
@ActionID(
category = "Edit",
id = "org.ihc.cem.ceml.cedar.modules.editor.actions.CompileWithTerminology"
)
@ActionRegistration(
iconBase = "org/ihc/cem/ceml/cedar/modules/editor/resources/compileAll.gif",
displayName = "#CTL_CompileWithTerminology"
)
@ActionReferences({
@ActionReference(path = "Editors/text/x-cem/Toolbars/Default", position = 4500, separatorBefore = 4490)
})
@NbBundle.Messages("CTL_CompileWithTerminology=Compile with Terminology Validation")
public final class CompileWithTerminology implements ActionListener {
private final EditorCookie context;
public CompileWithTerminology(EditorCookie context) {
this.context = context;
}
@Override
public void actionPerformed(ActionEvent ev) {
}
}
Todd Stevenson
Senior Software Engineer
Data Semantics and Clinical Modeling
Data and Analytics Services (DaAS)
Intermountain Healthcare
3930 Parkway Blvd |Salt Lake City, UT 84120
Office: 801-442-5112 | Cell: 801-589-1115
[email protected]<mailto:[email protected]>
[cid:[email protected]]
image003.jpg
(image/jpeg, 2.9 KB) - not displayed