Skip to main content



      Home
Home » Newcomers » Newcomers » Key binding for "Terminate" outside of Debug Perspective
Key binding for "Terminate" outside of Debug Perspective [message #247858] Tue, 05 February 2008 04:05 Go to next message
Eclipse UserFriend
Originally posted by: asdf007.mailinator.com

Hello everyone,

I have been a fervent Eclipse user for a few years now and have always
wished for a way to terminate a running application via a hotkey (I'm
quite a hotkey addict).

There is a binding to CTRL+F2 which seems to work in the Debug
Perspective. The thing is, I often launch my application in Run mode just
to try it out with no debugging, therefore staying within the Java (or
whatever) perspective. In this one, CTRL+F2 doesn't work. So I tried
changing the "When" property of the binding to "In Windows" (why are there
two "In Windows" btw?)... still no result. CTRL+F2 still won't do anything.

My version of Eclipse is 3.3.1.1 Europa.

Any idea? Is there a way to make it work from anywhere in Eclipse?

Thanks in advance.
Re: Key binding for "Terminate" outside of Debug Perspective [message #247916 is a reply to message #247858] Tue, 05 February 2008 09:35 Go to previous messageGo to next message
Eclipse UserFriend
Bob Roger wrote:
> Hello everyone,
> I have been a fervent Eclipse user for a few years now and have always
> wished for a way to terminate a running application via a hotkey (I'm
> quite a hotkey addict).
>
> There is a binding to CTRL+F2 which seems to work in the Debug
> Perspective. The thing is, I often launch my application in Run mode
> just to try it out with no debugging, therefore staying within the Java
> (or whatever) perspective. In this one, CTRL+F2 doesn't work. So I tried
> changing the "When" property of the binding to "In Windows" (why are
> there two "In Windows" btw?)... still no result. CTRL+F2 still won't do
> anything.
>
> My version of Eclipse is 3.3.1.1 Europa.
>
> Any idea? Is there a way to make it work from anywhere in Eclipse?
>
> Thanks in advance.
>
Hi Bob. I believe that the Terminate command only works during a debug
session. If you open the Debug perspective and go Window / Customize
Perspective and select the Commands tab, and select the Debug command
group, the Terminate command is in that group. I think this means that
the Terminate command only is defined in this context.

As an alternative, you could run your program in Debug mode will no
breakpoints set. In this case, you could still use Terminate to halt the
program, but otherwise, it would work just like Run As.

Hope this helps. Mark
Re: Key binding for "Terminate" outside of Debug Perspective [message #248006 is a reply to message #247916] Tue, 05 February 2008 18:41 Go to previous message
Eclipse UserFriend
"Mark Dexter" <dextercowley@gmail.com> wrote in message
news:fo9s8t$kl2$1@build.eclipse.org...
> Bob Roger wrote:
>> Hello everyone,
>> I have been a fervent Eclipse user for a few years now and have always
>> wished for a way to terminate a running application via a hotkey (I'm
>> quite a hotkey addict).
>>
>> There is a binding to CTRL+F2 which seems to work in the Debug
>> Perspective. The thing is, I often launch my application in Run mode just
>> to try it out with no debugging, therefore staying within the Java (or
>> whatever) perspective. In this one, CTRL+F2 doesn't work. So I tried
>> changing the "When" property of the binding to "In Windows" (why are
>> there two "In Windows" btw?)... still no result. CTRL+F2 still won't do
>> anything.
>>
>> My version of Eclipse is 3.3.1.1 Europa.
>>
>> Any idea? Is there a way to make it work from anywhere in Eclipse?
>>
>> Thanks in advance.
>>
> Hi Bob. I believe that the Terminate command only works during a debug
> session. If you open the Debug perspective and go Window / Customize
> Perspective and select the Commands tab, and select the Debug command
> group, the Terminate command is in that group. I think this means that the
> Terminate command only is defined in this context.
>
> As an alternative, you could run your program in Debug mode will no
> breakpoints set. In this case, you could still use Terminate to halt the
> program, but otherwise, it would work just like Run As.
>
> Hope this helps. Mark

Terminate will work for run as well as debug.
You can add/enable the Debug command group to any perspective using Window /
Customize Perspective>Commands.
Then open the Debug view in the Java perspective (as a Fast view perhaps)
and you should get your Terminate keybinding.

HTH
Darins
Previous Topic:Dot notation on a new instance not working
Next Topic:Proxy Settings ... plugincustomization, core.net.prefs
Goto Forum:
  


Current Time: Wed May 07 20:11:45 EDT 2025

Powered by FUDForum. Page generated in 0.08855 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top