Java Code Examples for javax.swing.Action#NAME

The following examples show how to use javax.swing.Action#NAME . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ToggleMethodFieldBreakpointAction.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public Object getValue(String key) {
    if (key == Action.NAME) {
        return NbBundle.getMessage (ToggleMethodFieldBreakpointAction.class, "CTL_ToggleMethodFieldBreakpointAction");
    }
    return super.getValue(key);
}
 
Example 2
Source File: ViewActions.java    From netbeans with Apache License 2.0 5 votes vote down vote up
public Object getValue(String key) {
    if (key == Action.NAME) {
        return NbBundle.getMessage (ViewActions.class, (String) super.getValue(key));
    }
    Object value = super.getValue(key);
    return value;
}
 
Example 3
Source File: DebuggerAction.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public Object getValue(String key) {
    if (key == Action.NAME && nameInBundle) {
        return NbBundle.getMessage (DebuggerAction.class, (String) super.getValue(key));
    }
    return super.getValue(key);
}
 
Example 4
Source File: ActionCheckConflicts.java    From Llunatic with GNU General Public License v3.0 4 votes vote down vote up
public ActionCheckConflicts() {
//        super.putValue(Action.SMALL_ICON, ImageUtilities.loadImage("it/unibas/lunatic/icons/run-project.24.png"));
        super.putValue(Action.NAME, Bundle.CTL_ActionCheckConflicts());
    }
 
Example 5
Source File: ActionChaseContinue.java    From Llunatic with GNU General Public License v3.0 4 votes vote down vote up
public ActionChaseContinue() {
    super.putValue(Action.SMALL_ICON, ImageUtilities.loadImage("it/unibas/lunatic/icons/continue-chase.24.gif"));
    super.putValue(Action.NAME, Bundle.CTL_ActionChaseContinue());
}
 
Example 6
Source File: ActionChase.java    From Llunatic with GNU General Public License v3.0 4 votes vote down vote up
public ActionChase() {
    super.putValue(Action.SMALL_ICON, ImageUtilities.loadImage("it/unibas/lunatic/icons/run-project.24.png"));
    super.putValue(Action.NAME, Bundle.CTL_ActionChase());
}