Java Code Examples for org.openide.util.Utilities#actionsGlobalContext()

The following examples show how to use org.openide.util.Utilities#actionsGlobalContext() . 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: ExportAction.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public ExportAction() {
    putValue(Action.SHORT_DESCRIPTION, "Export current graph as an SVG file");
    putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_E, InputEvent.CTRL_MASK));
    lookup = Utilities.actionsGlobalContext();
    result = lookup.lookup(new Lookup.Template<ExportCookie>(ExportCookie.class));
    result.addLookupListener(this);
    resultChanged(null);
}
 
Example 2
Source File: NavigatorController.java    From netbeans with Apache License 2.0 5 votes vote down vote up
/**
 * Shortcut for test purposes
 *
 * @node Nodes collection context, may be empty.
 */
List<NavigatorPanel> obtainProviders(Collection<? extends Node> nodes) {
    Lookup globalContext = Utilities.actionsGlobalContext();
    NavigatorLookupPanelsPolicy panelsPolicy = globalContext.lookup(NavigatorLookupPanelsPolicy.class);
    Collection<? extends NavigatorLookupHint> lkpHints = globalContext.lookupAll(NavigatorLookupHint.class);
    return obtainProviders(nodes, panelsPolicy, lkpHints);
}
 
Example 3
Source File: UndoRedoAction.java    From netbeans with Apache License 2.0 5 votes vote down vote up
public static Action create(Map<?,?> map) {
    if (Boolean.TRUE.equals(map.get("redo"))) { // NOI18N
        return new UndoRedoAction(Utilities.actionsGlobalContext(), false, true);
    }
    if (Boolean.TRUE.equals(map.get("undo"))) { // NOI18N
        return new UndoRedoAction(Utilities.actionsGlobalContext(), true, true);
    }
    throw new IllegalStateException();
}
 
Example 4
Source File: CopyPixelInfoToClipboardAction.java    From snap-desktop with GNU General Public License v3.0 4 votes vote down vote up
public CopyPixelInfoToClipboardAction() {
    this(Utilities.actionsGlobalContext());
}
 
Example 5
Source File: ImportVectorDataNodeFromMermaidAction.java    From snap-desktop with GNU General Public License v3.0 4 votes vote down vote up
public ImportVectorDataNodeFromMermaidAction() {
    this(Utilities.actionsGlobalContext());
}
 
Example 6
Source File: ContextAction.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public ContextAction() {
    this(Utilities.actionsGlobalContext());
}
 
Example 7
Source File: FilteredBandAction.java    From snap-desktop with GNU General Public License v3.0 4 votes vote down vote up
public FilteredBandAction() {
    this(Utilities.actionsGlobalContext());
}
 
Example 8
Source File: ComplexToIntensityAction.java    From snap-desktop with GNU General Public License v3.0 4 votes vote down vote up
public ComplexToIntensityAction() {
    this(Utilities.actionsGlobalContext());
}
 
Example 9
Source File: ExportTimeBasedKmz.java    From snap-desktop with GNU General Public License v3.0 4 votes vote down vote up
public ExportTimeBasedKmz() {
    this(Utilities.actionsGlobalContext());
}
 
Example 10
Source File: NextDiagramAction.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public NextDiagramAction() {
    this(Utilities.actionsGlobalContext());
}
 
Example 11
Source File: ImportTrackAction.java    From snap-desktop with GNU General Public License v3.0 4 votes vote down vote up
public ImportTrackAction() {
    this(Utilities.actionsGlobalContext());
}
 
Example 12
Source File: TileSingleAction.java    From snap-desktop with GNU General Public License v3.0 4 votes vote down vote up
@SuppressWarnings("UnusedDeclaration")
public TileSingleAction() {
    this(Utilities.actionsGlobalContext());
}
 
Example 13
Source File: AddLandCoverAction.java    From snap-desktop with GNU General Public License v3.0 4 votes vote down vote up
public AddLandCoverAction() {
    this(Utilities.actionsGlobalContext());
}
 
Example 14
Source File: PrevDiagramAction.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public PrevDiagramAction() {
    this(Utilities.actionsGlobalContext());
}
 
Example 15
Source File: CloseOtherProductsAction.java    From snap-desktop with GNU General Public License v3.0 4 votes vote down vote up
public CloseOtherProductsAction() {
    this(Utilities.actionsGlobalContext());
}
 
Example 16
Source File: UserTasksAction.java    From NBANDROID-V2 with Apache License 2.0 4 votes vote down vote up
public UserTasksAction() {
    this(Utilities.actionsGlobalContext());
}
 
Example 17
Source File: ImportVectorDataNodeFromShapefileAction.java    From snap-desktop with GNU General Public License v3.0 4 votes vote down vote up
public ImportVectorDataNodeFromShapefileAction() {
    this(Utilities.actionsGlobalContext());
}
 
Example 18
Source File: AddElevationAction.java    From snap-desktop with GNU General Public License v3.0 4 votes vote down vote up
public AddElevationAction() {
    this(Utilities.actionsGlobalContext());
}
 
Example 19
Source File: SelectionAwareAction.java    From snap-examples with GNU General Public License v3.0 4 votes vote down vote up
public SelectionAwareAction() {
    this(Utilities.actionsGlobalContext());
}
 
Example 20
Source File: ShowFailures.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public ShowFailures() {
    this(Utilities.actionsGlobalContext());
}