@ActionID(id = "org.netbeans.modules.profiler.actions.TakeSnapshotAction", category = "Profile") @ActionRegistration(displayName = "#LBL_TakeSnapshotAction") @ActionReferences(value = { @ActionReference(path = "Shortcuts", name = "C-F2"), @ActionReference(path = "Menu/Profile", position = 1200)}) public static TakeSnapshotAction getInstance() { return Singleton.INSTANCE; }
throw new LayerGenerationException("@ActionRegistration can only be used together with @ActionID annotation", e, processingEnv, ar); if (aid.id() == null) { continue; if (aid.category().startsWith("Actions/")) { throw new LayerGenerationException("@ActionID category() should not start with Actions/", e, processingEnv, aid, "category"); if (!FQN.matcher(aid.id()).matches()) { throw new LayerGenerationException("@ActionID id() must be valid fully qualified name", e, processingEnv, aid, "id"); LayerBuilder builder = layer(e); File f = builder.file("Actions/" + aid.category() + "/" + id + ".instance"); f.bundlevalue("displayName", ar.displayName(), ar, "displayName"); for (ActionReference actionReference : refs.value()) { processReferences(e, actionReference, aid); for (ActionReference actionReference : refs.value()) { if (!actionReference.id().id().isEmpty() || !actionReference.id().category().isEmpty()) { throw new LayerGenerationException("Don't specify additional id=@ActionID(...) when using @ActionID on the element", e, processingEnv, actionReference.id()); for (ActionReference actionReference : refs.value()) { if (actionReference.id().id().isEmpty() || actionReference.id().category().isEmpty()) { throw new LayerGenerationException("Specify real id=@ActionID(...)", e, processingEnv, actionReference.id());
@ActionReferences({ @ActionReference( id=@ActionID(id="org.netbeans.modules.gsf.testrunner.TestMethodRunnerAction", category="CommonTestRunner"), position=860, path="Editors/text/x-php5/Popup") }) @ServiceProvider(service = TestMethodRunnerProvider.class, position = 100) public class PhpTestMethodRunnerProvider extends TestMethodRunnerProvider { @Override public boolean isTestClass(Node activatedNode) { return TestSingleMethodSupport.isTestClass(activatedNode); } @Override public boolean canHandle(Node activatedNode) { return TestSingleMethodSupport.canHandle(activatedNode); } @Override public SingleMethod getTestMethod(Document doc, int caret) { return TestSingleMethodSupport.getTestMethod(doc, caret); } }
@ActionReferences({ @ActionReference( id=@ActionID(id="org.netbeans.modules.gsf.testrunner.TestMethodDebuggerAction", category="CommonTestRunner"), position=870, path="Editors/text/x-php5/Popup") }) @ServiceProvider(service = TestMethodDebuggerProvider.class, position = 100) public class PhpTestMethodDebuggerProvider extends TestMethodDebuggerProvider { @Override public boolean isTestClass(Node activatedNode) { return TestSingleMethodSupport.isTestClass(activatedNode); } @Override public boolean canHandle(Node activatedNode) { return TestSingleMethodSupport.canHandle(activatedNode); } @Override public SingleMethod getTestMethod(Document doc, int caret) { return TestSingleMethodSupport.getTestMethod(doc, caret); } }
@ActionID(category="Profile", id="org.netbeans.modules.profiler.actions.StopAction") @ActionRegistration(displayName="#LBL_StopAction") @ActionReferences({ @ActionReference(path="Menu/Profile", position=700, separatorAfter=800), @ActionReference(path="Shortcuts", name="S-F2") }) public static StopAction getInstance() { return Singleton.INSTANCE; }
persistenceType = PERSISTENCE_NEVER) @TopComponent.Registration(mode = "editor", openAtStartup = false) @ActionID(category = "Tools", id = "it.tidalwave.uniformity.ui.impl.main.netbeans.UniformityCheckMainTopComponent") @ActionReferences(value = @ActionReference(path = "Menu/Tools", position = 2500), @ActionReference(path = "Toolbars/Standard", position = 2500) }) @TopComponent.OpenActionRegistration(displayName = "#CTL_UniformityCheckMainAction", preferredID = "UniformityCheckMainTopComponent")
@ActionID(category="Profile", id="org.netbeans.modules.profiler.actions.ResetResultsAction") @ActionRegistration(displayName="#LBL_ResetResultsAction", lazy=false) @ActionReferences({ @ActionReference(path="Menu/Profile", position=900), @ActionReference(path = "Shortcuts", name = "AS-F2") }) public static ResetResultsAction getInstance() { return Singleton.INSTANCE; }
persistenceType = PERSISTENCE_NEVER) @TopComponent.Registration(mode = "editor", openAtStartup = false) @ActionID(category = "Tools", id = "it.tidalwave.uniformity.ui.impl.main.netbeans.UniformityCheckMainTopComponent") @ActionReferences(value = @ActionReference(path = "Menu/Tools", position = 2500), @ActionReference(path = "Toolbars/Standard", position = 2500) }) @TopComponent.OpenActionRegistration(displayName = "#CTL_UniformityCheckMainAction", preferredID = "UniformityCheckMainTopComponent")
@ActionID(category = "Time", id = "com.github.kayak.ui.time.StopAction") @ActionRegistration(iconBase = "com/github/kayak/ui/icons/media-playback-stop.png", displayName = "com.github.kayak.ui.time.Bundle#CTL_StopAction") @ActionReferences({ @ActionReference(path = "Toolbars/Time", position = 300), @ActionReference(path = "Menu/Time", position = 300) }) public final class StopAction implements ActionListener { @Override public void actionPerformed(ActionEvent e) { TimeSourceManager.getGlobalTimeSource().stop(); } }
persistenceType = PERSISTENCE_NEVER) @TopComponent.Registration(mode = "editor", openAtStartup = false) @ActionID(category = "Tools", id = "it.tidalwave.blueshades.profileevaluation.ui.impl.main.netbeans.ProfileEvaluationMainTopComponent") @ActionReferences(value = @ActionReference(path = "Menu/Tools", position = 2500), @ActionReference(path = "Toolbars/Standard", position = 2500) }) @TopComponent.OpenActionRegistration(displayName = "#CTL_ProfileEvaluationAction", preferredID = "ProfileEvaluationMainTopComponent")
@ActionID(category = "Time", id = "com.github.kayak.ui.time.PlayAction") @ActionRegistration(iconBase = "com/github/kayak/ui/icons/media-playback-start.png", displayName = "com.github.kayak.ui.time.Bundle#CTL_PlayAction") @ActionReferences({ @ActionReference(path = "Toolbars/Time", position = 100), @ActionReference(path = "Menu/Time", position = 100) }) public final class PlayAction implements ActionListener { @Override public void actionPerformed(ActionEvent e) { TimeSourceManager.getGlobalTimeSource().play(); } }
@Messages({ "LBL_Beans_LOADER=Files of Beans" }) displayName = "#LBL_Beans_LOADER" @ActionReferences({ @ActionReference( path = "Loaders/text/x-beans+xml/Actions", id = @ActionID(category = "System", id = "org.openide.actions.OpenAction"), position = 100, separatorAfter = 200 ), @ActionReference( path = "Loaders/text/x-beans+xml/Actions", id = @ActionID(category = "Edit", id = "org.openide.actions.CutAction"), position = 300 ), @ActionReference( path = "Loaders/text/x-beans+xml/Actions", id = @ActionID(category = "Edit", id = "org.openide.actions.CopyAction"), position = 400, separatorAfter = 500
@ActionRegistration(displayName="Bookmark connection...", iconBase="com/github/kayak/ui/icons/bookmark-new.png", iconInMenu=true, surviveFocusChange=true) @ActionID(category="Connections", id="com.github.kayak.ui.connections.BookmarkConnectionAction") @ActionReferences(value = { @ActionReference(path="Menu/Connections", position=30)}) public final class BookmarkConnectionAction extends AbstractAction { private final BusURL context; public BookmarkConnectionAction(BusURL context) { this.context = context; putValue(NAME, "Bookmark"); } @Override public void actionPerformed(ActionEvent ev) { ConnectionManager.getGlobalConnectionManager().addFavourite(context); } }
@Messages({ "LBL_Ts_LOADER=Files of Ts" }) position = 300 @ActionReferences({ @ActionReference( path = "Loaders/text/x-ts/Actions", id = @ActionID(category = "System", id = "org.openide.actions.OpenAction"), position = 100, separatorAfter = 200 ), @ActionReference( path = "Loaders/text/x-ts/Actions", id = @ActionID(category = "Edit", id = "org.openide.actions.CutAction"), position = 300 ), @ActionReference( path = "Loaders/text/x-ts/Actions", id = @ActionID(category = "Edit", id = "org.openide.actions.CopyAction"), position = 400, separatorAfter = 500
@ActionID(category = "Time", id = "com.github.kayak.ui.time.PauseAction") @ActionRegistration(iconBase = "com/github/kayak/ui/icons/media-playback-pause.png", displayName = "com.github.kayak.ui.time.Bundle#CTL_PauseAction") @ActionReferences({ @ActionReference(path = "Toolbars/Time", position = 200), @ActionReference(path = "Menu/Time", position = 200) }) public final class PauseAction implements ActionListener { @Override public void actionPerformed(ActionEvent e) { TimeSourceManager.getGlobalTimeSource().pause(); } }
@Messages({ "MimeTypeDisplayName=Spring Boot Configuration Properties" }) position = 300 @ActionReferences({ @ActionReference( path = "Loaders/text/application+properties/Actions", id = @ActionID(category = "System", id = "org.openide.actions.OpenAction"), position = 100, separatorAfter = 200 ,@ActionReference( path = "Loaders/text/application+properties/Actions", id = @ActionID(category = "Edit", id = "org.openide.actions.CutAction"), position = 300 ,@ActionReference( path = "Loaders/text/application+properties/Actions", id = @ActionID(category = "Edit", id = "org.openide.actions.CopyAction"), position = 400, separatorAfter = 500
/** * * @author Petr Hejl */ @ActionID(id = "org.netbeans.modules.docker.ui.wizard.AddDockerInstanceAction", category = "System") @ActionRegistration(displayName = "#LBL_AddDockerInstanceAction") @ActionReferences( @ActionReference(path = "Docker/Wizard", position = 100) ) public class AddDockerInstanceAction implements ActionListener { @Override public void actionPerformed(ActionEvent e) { AddDockerInstanceWizard wizard = new AddDockerInstanceWizard(); wizard.show(); } }
@Messages({ "LBL_Grid_LOADER=Files of Grid" }) displayName = "#LBL_Grid_LOADER", position = 300) @ActionReferences({ @ActionReference( path = "Loaders/" + GridDataObject.MIME_TYPE + "/Actions", id =@ActionID(category = "System", id = "org.openide.actions.OpenAction"), position = 100, separatorAfter = 200
@ActionID(id = "com.github.kayak.ui.connections.NewConnectionAction", category = "Connections") @ActionRegistration(iconInMenu = true, displayName = "#CTL_NewConnectionAction", iconBase = "com/github/kayak/ui/icons/document-new.png") @ActionReferences(value = { @ActionReference(path = "Menu/Connections", position = 20)}) public final class NewConnectionAction implements ActionListener { @Override public void actionPerformed(ActionEvent ev) { String url = JOptionPane.showInputDialog("Please specify a socket to connect with:", "socket://can0@192.168.30.129:29536"); if (url != null) { BusURL beacon = BusURL.fromString(url); if (beacon != null) { ConnectionManager.getGlobalConnectionManager().addRecent(beacon); } } } }
@Messages({ "LBL_Csv_LOADER=Files of Csv" }) displayName = "#LBL_Csv_LOADER", position = 300) @ActionReferences({ @ActionReference( path = "Loaders/text/csv/Actions", id = @ActionID(category = "System", id = "org.openide.actions.OpenAction"), position = 100, separatorAfter = 200), @ActionReference( path = "Loaders/text/csv/Actions", id = @ActionID(category = "Edit", id = "org.openide.actions.DeleteAction"), position = 600), @ActionReference( path = "Loaders/text/csv/Actions", id = @ActionID(category = "System", id = "org.openide.actions.RenameAction"), position = 700, separatorAfter = 800),