@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; }
f.bundlevalue("displayName", ar.displayName(), ar, "displayName"); String menuText = ar.menuText(); if(!menuText.isEmpty()) { f.bundlevalue("menuText", menuText, ar, "menuText"); String popupText = ar.popupText(); if (!popupText.isEmpty()) { f.bundlevalue("popupText", popupText, ar, "popupText"); if (ar.key().length() != 0) { throw new LayerGenerationException("When annotating field, one cannot define key()", e, processingEnv, ar, "key"); key = ar.key(); } else { assert e.getKind() == ElementKind.METHOD : e; builder.instanceFile("dummy", null, ActionListener.class, ar, null); key = ar.key(); if (entry.getKey().getSimpleName().contentEquals("lazy")) { direct = ! (Boolean) entry.getValue().getValue(); assert direct == !ar.lazy(); break; if (!ar.iconBase().isEmpty()) { processingEnv.getMessager().printMessage(Diagnostic.Kind.WARNING, "iconBase unused on eager registrations", e, arMirror); if (ar.iconBase().length() > 0) { builder.validateResource(ar.iconBase(), e, ar, "iconBase", true);
@ActionID(category="Profile", id="org.netbeans.modules.profiler.actions.ModifyProfilingAction") @ActionRegistration(displayName="#LBL_ModifyProfilingAction", iconBase="org/netbeans/modules/profiler/impl/icons/modifyProfiling.png", lazy=false) @ActionReference(path="Menu/Profile", position=600) public static ModifyProfilingAction getInstance() { return Singleton.INSTANCE; }
@ActionID(category = "CommonTestRunner", id = "org.netbeans.modules.gsf.testrunner.ui.ResultWindow.Rerun") @ActionRegistration(displayName = "#CTL_Rerun") @NbBundle.Messages("CTL_Rerun=Rerun All Tests") public static final class Rerun extends AbstractAction { @Override public void actionPerformed(ActionEvent e) { StatisticsPanel statisticsPanel = getStatisticsPanel(); if(statisticsPanel != null) { statisticsPanel.rerun(false); } } }
@ActionID(id = "org.netbeans.modules.profiler.actions.RunGCAction", category = "Profile") @ActionRegistration(displayName = "#LBL_RunGCAction", lazy=false) @ActionReference(path = "Menu/Profile", position = 1000, separatorAfter=1100) public static RunGCAction getInstance() { return Singleton.INSTANCE; }
@ActionID(category = "CommonTestRunner", id = "org.netbeans.modules.gsf.testrunner.ui.ResultWindow.RerunFailed") @ActionRegistration(displayName = "#CTL_RerunFailed") @NbBundle.Messages("CTL_RerunFailed=Rerun Failed Tests") public static final class RerunFailed extends AbstractAction { @Override public void actionPerformed(ActionEvent e) { StatisticsPanel statisticsPanel = getStatisticsPanel(); if(statisticsPanel != null) { statisticsPanel.rerun(true); } } }
@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; }
@ActionID(id = "org.netbeans.modules.profiler.actions.AttachAction", category = "Profile") @ActionRegistration(iconInMenu = true, displayName = "#LBL_AttachMainProjectAction", lazy=false) @ActionReference(path = "Menu/Profile", position = 200) public static AttachAction getInstance() { return Singleton.INSTANCE; }
@ActionID( category = "SonarQube", id = "qubexplorer.ui.SonarDialogAction") @ActionRegistration( displayName = "#CTL_SonarDialogAction") @Messages("CTL_SonarDialogAction=Get Issues from Server") public final class ServerIssuesAction implements ActionListener { private final Project context; public ServerIssuesAction(Project context) { this.context = context; } @Override public void actionPerformed(ActionEvent ev) { SonarQubeProjectConfiguration configuration = ConfigurationFactory.createDefaultConfiguration(context); if (configuration != null) { final ProjectContext projectContext = new ProjectContext(context, configuration); final SonarQube sonarQube = SonarQubeFactory.createForDefaultServerUrl(); TaskExecutor.execute(new SummaryTask(sonarQube, projectContext, new SummaryOptions<>(Severity.getType(), Collections.emptyList()))); } } }
@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; }
@ActionID(id = "org.netbeans.modules.java.platform.ui.PlatformsCustomizerAction", category = "Tools") @ActionRegistration(iconInMenu = false, displayName = "#CTL_PlatformManager") @ActionReference(position = 300, name = "JavaPlatformsCustomizerAction", path = "Menu/Tools") public final class PlatformsCustomizerAction implements ActionListener { public void actionPerformed(ActionEvent e) { org.netbeans.api.java.platform.PlatformsCustomizer.showCustomizer(null); } }
@Messages("LBL_TestProject_Action=Test") @ActionID(id = "org.netbeans.modules.groovy.support.GroovyProjectModule.test.project", category = "Groovy") @ActionRegistration(lazy = false, displayName = "#LBL_TestProject_Action") public static Action testProject() { return ProjectSensitiveActions.projectCommandAction( ActionProvider.COMMAND_TEST, LBL_TestProject_Action(), null); }
@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(); } }
@ActionID(id = "org.netbeans.modules.profiler.actions.HeapDumpAction", category = "Profile") @ActionRegistration(displayName = "#HeapDumpAction_ActionName", lazy=false) @ActionReference(path = "Menu/Profile", position = 1300) public static HeapDumpAction getInstance() { return Singleton.INSTANCE; }
@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(); } }
@ActionID(category="Profile", id="org.netbeans.modules.profiler.actions.TelemetryOverviewAction") @ActionRegistration(displayName="#LBL_TelemetryOverviewAction", iconBase="org/netbeans/modules/profiler/impl/icons/telemetryOverviewWindow.png") @ActionReference(path="Menu/Window/Profile", position=500) public static TelemetryOverviewAction getInstance() { return Singleton.INSTANCE; }
@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); } }
@ActionID(id = "org.netbeans.modules.project.ant.VariablesCustomizerAction", category = "Tools") @ActionRegistration(iconInMenu = false, displayName = "#ACTION_NAME_Variables") @ActionReference(position = 475, name = "VariablesCustomizerAction", path = "Menu/Tools") public final class VariablesCustomizerAction implements ActionListener { public void actionPerformed(ActionEvent e) { VariablesPanel.showVariablesCustomizer(); } }
@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(); } }
@ActionID(category = "Tools", id = "org.esa.snap.pixex.visat.PixelExtractionAction" ) @ActionRegistration(displayName = "#CTL_PixelExtractionAction_Text") @ActionReference(path = "Menu/Raster/Export", position = 0) @NbBundle.Messages({"CTL_PixelExtractionAction_Text=Extract Pixel Values"}) public class PixelExtractionAction extends AbstractSnapAction { public PixelExtractionAction() { putValue(SHORT_DESCRIPTION, "Extract pixel values given a list of geographical points from one or more data products."); putValue(HELP_ID, "pixelExtraction"); } @Override public void actionPerformed(ActionEvent e) { new PixelExtractionDialog(getAppContext(), "Pixel Extraction", getHelpId()).show(); } }