@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); } }
/** * * @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(); } }
@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); } } } }
@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; }
@ActionRegistration(displayName="Delete connection...", iconBase="com/github/kayak/ui/icons/edit-delete.png", iconInMenu=true, surviveFocusChange=true) @ActionID(category="Connections", id="com.github.kayak.ui.connections.DeleteConnectionAction") @ActionReferences(value = { @ActionReference(path="Menu/Connections", position=40)}) public final class DeleteConnectionAction extends AbstractAction { private final BusURLNode context; public DeleteConnectionAction(BusURLNode context) { this.context = context; putValue(NAME, "Delete"); } @Override public void actionPerformed(ActionEvent ev) { if(context.getType() == BusURLNode.Type.FAVOURITE) { ConnectionManager.getGlobalConnectionManager().removeFavourite(context.getURL()); } else if(context.getType() == BusURLNode.Type.RECENT) { ConnectionManager.getGlobalConnectionManager().removeRecent(context.getURL()); } } }
@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(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(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 = "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(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 = "Animation", id = "org.rwshop.nb.animation.actions.LoopAnimationAction") @ActionRegistration(iconBase = "org/rwshop/nb/animation/resources/images/Continue16.gif", displayName = "#CTL_LoopAnimationAction") @ActionReferences({ @ActionReference(path = "Toolbars/Animation", position = 400) }) @Messages("CTL_LoopAnimationAction=Loop Animation") public final class LoopAnimationAction implements ActionListener { private final LoopCookie context; public LoopAnimationAction(LoopCookie context) { this.context = context; } public void actionPerformed(ActionEvent ev) { context.loop(); } }
@ActionID(category = "Animation", id = "org.rwshop.nb.animation.actions.StopAnimationAction") @ActionRegistration(iconBase = "org/rwshop/nb/animation/resources/images/Stop16.gif", displayName = "#CTL_StopAnimationAction") @ActionReferences({ @ActionReference(path = "Toolbars/Animation", position = 400) }) @Messages("CTL_StopAnimationAction=Stop Animation") public final class StopAnimationAction implements ActionListener { private final StopCookie context; public StopAnimationAction(StopCookie context) { this.context = context; } public void actionPerformed(ActionEvent ev) { context.stop(); } }
/** * * @author Jan-Niklas Meier <dschanoeh@googlemail.com> */ @ActionRegistration(displayName="Open send view", iconBase="com/github/kayak/ui/icons/mail-forward.png", iconInMenu=true, surviveFocusChange=true) @ActionID(category="Bus views", id="com.github.kayak.ui.send.SendFramesTopComponent") @ActionReferences( value= { @ActionReference(path = "Menu/Bus views"), @ActionReference(path = "Toolbars/Bus views") }) public class OpenSendFramesAction extends AbstractAction { @Override public void actionPerformed(ActionEvent ev) { SendFramesTopComponent tc = new SendFramesTopComponent(); tc.open(); tc.requestActive(); } }
/** * * @author Jan-Niklas Meier <dschanoeh@googlemail.com> */ @ActionRegistration(displayName="Open gauge view", iconBase="com/github/kayak/ui/icons/appointment-new.png", iconInMenu=true, surviveFocusChange=true) @ActionID(category="BusViews", id="com.github.kayak.ui.gaugeview.OpenGaugeViewAction") @ActionReferences( value= { @ActionReference(path = "Menu/Bus views", position = 10), @ActionReference(path = "Toolbars/Bus views", position = 10) }) public class OpenGaugeViewAction extends AbstractAction { @Override public void actionPerformed(ActionEvent ev) { GaugeTopComponent tc = new GaugeTopComponent(); tc.open(); tc.requestActive(); } }
@ActionID(category = "BusViews", id = "com.github.kayak.mapview.OpenMapViewAction") @ActionRegistration(displayName = "#CTL_OpenMapView", iconBase="com/github/kayak/mapview/icons/internet-web-browser.png") @ActionReferences(value = { @ActionReference(path = "Menu/Bus views", position = 15), @ActionReference(path = "Toolbars/Bus views", position = 15) }) @Messages("CTL_OpenMapView=Open map view") public final class OpenMapViewAction implements ActionListener { @Override public void actionPerformed(ActionEvent e) { MapViewTopComponent tc = new MapViewTopComponent(); tc.open(); tc.requestActive(); } }
@ActionID( category = "Tools", id = "net.sourceforge.javydreamercsw.client.ui.ConnectAction") @ActionRegistration( iconBase = "net/sourceforge/javydreamercsw/client/ui/database-connect-icon.png", displayName = "#CTL_ConnectAction") @ActionReferences({ @ActionReference(path = "Toolbars/Actions", position = 300), @ActionReference(path = "Shortcuts", name = "D-C") }) @Messages("CTL_ConnectAction=Connect") public final class ConnectAction implements ActionListener { @Override public void actionPerformed(ActionEvent e) { //Connect to database DataBaseTool.connect(); ProjectExplorerComponent.refresh(); } }
@Messages("LBL_TestFile_Action=Test File") @ActionID(id = "org.netbeans.modules.groovy.support.GroovyProjectModule.test", category = "Groovy") @ActionRegistration(lazy = false, displayName = "#LBL_TestFile_Action") @ActionReferences(value = { @ActionReference(path = "Loaders/text/x-groovy/Actions", position = 580), @ActionReference(path = "Editors/text/x-groovy/Popup", position = 830) }) public static Action test() { return FileSensitiveActions.fileCommandAction( ActionProvider.COMMAND_TEST_SINGLE, LBL_TestFile_Action(), null); }
@Messages("LBL_RunFile_Action=Run File") @ActionID(id = "org.netbeans.modules.groovy.support.GroovyProjectModule.run", category = "Groovy") @ActionRegistration(lazy = false, displayName = "#LBL_RunFile_Action") @ActionReferences(value = { @ActionReference(path = "Loaders/text/x-groovy/Actions", position = 560), @ActionReference(path = "Editors/text/x-groovy/Popup", position = 810, separatorBefore = 800) }) public static Action run() { return FileSensitiveActions.fileCommandAction( ActionProvider.COMMAND_RUN_SINGLE, LBL_RunFile_Action(), null); }
@Messages("LBL_DebugFile_Action=Debug File") @ActionID(id = "org.netbeans.modules.groovy.support.GroovyProjectModule.debug", category = "Groovy") @ActionRegistration(lazy = false, displayName = "#LBL_DebugFile_Action") @ActionReferences(value = { @ActionReference(path = "Loaders/text/x-groovy/Actions", position = 570), @ActionReference(path = "Editors/text/x-groovy/Popup", position = 820) }) public static Action debug() { return FileSensitiveActions.fileCommandAction( ActionProvider.COMMAND_DEBUG_SINGLE, LBL_DebugFile_Action(), null); }
@Messages("LBL_DebugTestFile_Action=Debug Test File") @ActionID(id = "org.netbeans.modules.groovy.support.GroovyProjectModule.debug.test", category = "Groovy") @ActionRegistration(lazy = false, displayName = "#LBL_DebugTestFile_Action") @ActionReferences(value = { @ActionReference(path = "Loaders/text/x-groovy/Actions", position = 590), @ActionReference(path = "Editors/text/x-groovy/Popup", position = 840) }) public static Action debugTest() { return FileSensitiveActions.fileCommandAction( ActionProvider.COMMAND_DEBUG_TEST_SINGLE, LBL_DebugTestFile_Action(), null); } }