Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Subversive » Assign hotkeys for Team>Commit/Update
Assign hotkeys for Team>Commit/Update [message #38928] Tue, 09 December 2008 18:34 Go to next message
Leftblank is currently offline LeftblankFriend
Messages: 1
Registered: July 2009
Junior Member
I'm unsure if it's yet possible, if so, my apologies for this post,
however, I'm trying to assign a hotkey in Eclipse to the action Team ->
Commit, or Update for that matter. The only actions I can choose from are
the options for CVS, which I suppose are Eclipse-default. Sadly the only
relevant posts I've been able to find regarding this were dated 2006 and
I'd expect things to have changed by now.

So my question is whether its possible to assign hotkeys to those actions
yet. If so, it'd be greatly appreciated if you could tell me how.

Thanks in advance.
Re: Assign hotkeys for Team>Commit/Update [message #38982 is a reply to message #38928] Wed, 10 December 2008 13:02 Go to previous messageGo to next message
Radoslaw Jozwik is currently offline Radoslaw JozwikFriend
Messages: 33
Registered: July 2009
Member
Leftblank pisze:
> I'm unsure if it's yet possible, if so, my apologies for this post,
> however, I'm trying to assign a hotkey in Eclipse to the action Team ->
> Commit, or Update for that matter. The only actions I can choose from
> are the options for CVS, which I suppose are Eclipse-default. Sadly the
> only relevant posts I've been able to find regarding this were dated
> 2006 and I'd expect things to have changed by now.
>
> So my question is whether its possible to assign hotkeys to those
> actions yet. If so, it'd be greatly appreciated if you could tell me how.

What version of Subversive do you have? In my version (0.7.5) I have
default key bindings for Commit (Ctrl+Alt+C) and Update (Ctrl+Alt+U).

You should be able to change key bindings in General -> Keys preferences
window. The easiest way to find them is to filter them out by using
filter input field (it is input field with "type filter text" text
inside). Key bindings are in SVN category.

Note: There is a bug #225930 related to key bindings
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=225930) marked as closed,
but it is still valid for my version of Subversive.

Regards,
Radoslaw Jozwik
Re: Assign hotkeys for Team>Commit/Update [message #39769 is a reply to message #38982] Tue, 23 December 2008 17:00 Go to previous messageGo to next message
Igor Burilo is currently offline Igor BuriloFriend
Messages: 435
Registered: July 2009
Senior Member
Hello Radoslaw,

You wrote that you have problems related to bug #225930. Unfortunately we
can't reproduce it. Could you please provide additional information: your
environment (Subversive version, SVN Connectors, Eclipse version, OS etc.
Also I saw your comment to this bug with Eclipse and Subversive version),
probably there are some notes worth to mention (maybe you changed key
bindings) and reopen it?


> Leftblank pisze:
>> I'm unsure if it's yet possible, if so, my apologies for this post,
>> however, I'm trying to assign a hotkey in Eclipse to the action Team ->
>> Commit, or Update for that matter. The only actions I can choose from are
>> the options for CVS, which I suppose are Eclipse-default. Sadly the only
>> relevant posts I've been able to find regarding this were dated 2006 and
>> I'd expect things to have changed by now.
>>
>> So my question is whether its possible to assign hotkeys to those actions
>> yet. If so, it'd be greatly appreciated if you could tell me how.
>
> What version of Subversive do you have? In my version (0.7.5) I have
> default key bindings for Commit (Ctrl+Alt+C) and Update (Ctrl+Alt+U).
>
> You should be able to change key bindings in General -> Keys preferences
> window. The easiest way to find them is to filter them out by using filter
> input field (it is input field with "type filter text" text inside). Key
> bindings are in SVN category.
>
> Note: There is a bug #225930 related to key bindings
> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=225930) marked as closed,
> but it is still valid for my version of Subversive.
>
> Regards,
> Radoslaw Jozwik
Re: Assign hotkeys for Team>Commit/Update [message #40079 is a reply to message #39769] Mon, 05 January 2009 12:22 Go to previous messageGo to next message
Radoslaw Jozwik is currently offline Radoslaw JozwikFriend
Messages: 33
Registered: July 2009
Member
Igor Burilo wrote:
> You wrote that you have problems related to bug #225930. Unfortunately we
> can't reproduce it. Could you please provide additional information: your
> environment (Subversive version, SVN Connectors, Eclipse version, OS etc.

Hello Igor,

Thanks for noticing my problem with key bindings. Here are the details
of my current environment:

Subversive version: 0.7.6.I20081229-1900
SVN Connector: 2.0.7.I20081222-1900 (Native JavaHL (svn:1.4.5 (r25188)
jni:0.9.0))
Eclipse version: 3.4.1
Eclipse Build ID: M20080911-1700
OS: Windows XP

I have some other plugins installed (Mylyn + WTP + their dependencies),
but no third party plugins.

> Also I saw your comment to this bug with Eclipse and Subversive version),
> probably there are some notes worth to mention (maybe you changed key
> bindings) and reopen it?

The behaviour from my comment on bug #225930 still exists, but I'm not
sure if I can reopen the bug (I'm not the author).

I didn't change default bindings. I have also tried with clean workspace
but without success. I can use key bindings for "Compare with" dialogues
only once. They don't work (wizard windows don't appear) until I reopen
the file.

When searching through the key bindings preferences I've noticed that
"Latest from Repository" command is duplicated there. One has default
binding and the other doesn't have any. Both are in SVN category. Maybe
this can help you in some way? BTW. I suggest to rename this command to
"Compare with Latest from Repository" as it is in CVS category.

Regards,
Radoslaw Jozwik
Re: Assign hotkeys for Team>Commit/Update [message #40602 is a reply to message #39769] Tue, 27 January 2009 19:17 Go to previous messageGo to next message
Radoslaw Jozwik is currently offline Radoslaw JozwikFriend
Messages: 33
Registered: July 2009
Member
Hello Igor.

Did you find my comments useful? I still have problems with keyboard
shortcuts as described in this thread.

Regards,
Radoslaw Jozwik
Re: Assign hotkeys for Team>Commit/Update [message #40728 is a reply to message #40602] Fri, 30 January 2009 09:15 Go to previous messageGo to next message
Igor Burilo is currently offline Igor BuriloFriend
Messages: 435
Registered: July 2009
Senior Member
Hello Radoslaw,

I tried to reproduce the problem in the following way: I selected a file in
Package Explorer by mouse and pressed Ctrl+Alt+L and got a Compare dialog,
then I again pressed Ctrl+Alt+L and didn't get Compare dialog. I noticed
that I didn't have Compare dialog second time because there wasn't any
selection(previously selected file after appearing a Compare dialog lost a
focus). So if I explicitly select a file and press a shortcut, everything
works.
Could it resolve your problem?

> Hello Igor.
>
> Did you find my comments useful? I still have problems with keyboard
> shortcuts as described in this thread.
>
> Regards,
> Radoslaw Jozwik
Re: Assign hotkeys for Team>Commit/Update [message #40913 is a reply to message #40728] Wed, 04 February 2009 13:19 Go to previous messageGo to next message
Radoslaw Jozwik is currently offline Radoslaw JozwikFriend
Messages: 33
Registered: July 2009
Member
Igor Burilo wrote:
> I tried to reproduce the problem in the following way: I selected a file in
> Package Explorer by mouse and pressed Ctrl+Alt+L and got a Compare dialog,
> then I again pressed Ctrl+Alt+L and didn't get Compare dialog. I noticed
> that I didn't have Compare dialog second time because there wasn't any
> selection(previously selected file after appearing a Compare dialog lost a
> focus). So if I explicitly select a file and press a shortcut, everything
> works.
> Could it resolve your problem?

Hello Igor,

Your description works when applied to the file selected in Package
Explorer, but I was trying to use shortcuts on file opened in the
editor. Try this:
1. Open file in the editor, make sure you have focus inside editor and
press Ctrl+Alt+L. Compare dialog will be opened.
2. Close compare dialog and when still having focus in the editor press
Ctrl+Alt+L again. This time compare dialog will not be shown until you
reopen the file in editor.

The same behaviour exists for Ctrl+Alt+R ("Compare With" -> "Revision or
URL...").

Regards,
Radoslaw Jozwik
Re: Assign hotkeys for Team>Commit/Update [message #41153 is a reply to message #40913] Thu, 05 February 2009 14:53 Go to previous messageGo to next message
Igor Burilo is currently offline Igor BuriloFriend
Messages: 435
Registered: July 2009
Senior Member
Hello Radoslaw,

Aha, you call key shortcuts from editor, then I consider that this is normal
behaviour that they don't work, because actions consume resources selection
as their input, e.g. from Package Explorer, Navigator and don't react to
editor in which file is opened. You can simply check it by making selection
on one file in Package Explorer and open another file in editor(make editor
as active) and then call shortcuts, as a result you will have action called
on selected file but not on a file from editor(also I got that action wasn't
called because resources selection wasn't active).

> Igor Burilo wrote:
>> I tried to reproduce the problem in the following way: I selected a file
>> in Package Explorer by mouse and pressed Ctrl+Alt+L and got a Compare
>> dialog, then I again pressed Ctrl+Alt+L and didn't get Compare dialog. I
>> noticed that I didn't have Compare dialog second time because there
>> wasn't any selection(previously selected file after appearing a Compare
>> dialog lost a focus). So if I explicitly select a file and press a
>> shortcut, everything works.
>> Could it resolve your problem?
>
> Hello Igor,
>
> Your description works when applied to the file selected in Package
> Explorer, but I was trying to use shortcuts on file opened in the editor.
> Try this:
> 1. Open file in the editor, make sure you have focus inside editor and
> press Ctrl+Alt+L. Compare dialog will be opened.
> 2. Close compare dialog and when still having focus in the editor press
> Ctrl+Alt+L again. This time compare dialog will not be shown until you
> reopen the file in editor.
>
> The same behaviour exists for Ctrl+Alt+R ("Compare With" -> "Revision or
> URL...").
>
> Regards,
> Radoslaw Jozwik
Re: Assign hotkeys for Team>Commit/Update [message #41330 is a reply to message #41153] Sun, 08 February 2009 18:12 Go to previous messageGo to next message
Radoslaw Jozwik is currently offline Radoslaw JozwikFriend
Messages: 33
Registered: July 2009
Member
On 5 II 2009 15:53, Igor Burilo wrote:
> Aha, you call key shortcuts from editor, then I consider that this is normal
> behaviour that they don't work, because actions consume resources selection
> as their input, e.g. from Package Explorer, Navigator and don't react to
> editor in which file is opened.

Subversive shortcuts work, but only once - after opening the file for
the first time in editor area. After first call they stop working. This
is only related to Subversive commands. For example: I can call
"Refactor" -> "Move" command on file opened in the editor by pressing
Shift + Alt + V shortcut as many times as I like.

> You can simply check it by making selection
> on one file in Package Explorer and open another file in editor(make editor
> as active) and then call shortcuts, as a result you will have action called
> on selected file but not on a file from editor(also I got that action wasn't
> called because resources selection wasn't active).

Honestly I don't understand your explanation. When I select something in
Package Explorer, and then open another file in the editor, then opened
file will have selection, isn't it?

Lets forget about Package Explorer (or any other view) for a moment.
Lets assume, that I have file in my editor area and I want to perform
some action (like checking for differences between revisions) on it with
keyboard shortcut. I'm able to perform such actions like copy & paste,
"Refactor" -> "Move" and so on, but I'm not able to perform Subversive
related actions more than once, until I reopen the file in editor.

Sorry for drilling down this topic, but I really would like to use
keyboard shortcuts on a file without the need of selecting it in Package
Explorer.

Radoslaw Jozwik
Re: Assign hotkeys for Team>Commit/Update [message #41361 is a reply to message #41330] Sun, 08 February 2009 19:45 Go to previous message
sNop is currently offline sNopFriend
Messages: 281
Registered: July 2009
Senior Member
Hi Radoslaw Jozwik napsal(a):
>
> Honestly I don't understand your explanation. When I select something in
> Package Explorer, and then open another file in the editor, then opened
> file will have selection, isn't it?
>
> Lets forget about Package Explorer (or any other view) for a moment.
> Lets assume, that I have file in my editor area and I want to perform
> some action (like checking for differences between revisions) on it with
> keyboard shortcut. I'm able to perform such actions like copy & paste,
> "Refactor" -> "Move" and so on, but I'm not able to perform Subversive
> related actions more than once, until I reopen the file in editor.
>
> Sorry for drilling down this topic, but I really would like to use
> keyboard shortcuts on a file without the need of selecting it in Package
> Explorer.
>

I follow this thread and I absolutely agree with you Radoslaw, I lack this too
Previous Topic:Can't install Subversive SVN Connectors release (2.0.7 or 2.0.8?)
Next Topic:Repository Structure
Goto Forum:
  


Current Time: Wed Apr 24 23:38:41 GMT 2024

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

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

Back to the top