views:

406

answers:

3

I am making numerous, minute changes to .php files in Eclipse PDT then committing them and testing on the server.

The repetitive six-step commit process is getting tedious:

right-click
team
Commit...
click "choose previously selected comment"
select in list
click OK

Does anyone know of a hotkey or other process to expedite this?

UPDATE: does anyone know of a general hotkey macro tool for windows applications which would allow me to program a macro that would make these 6 clicks for me?

+1  A: 

In eclipse you can choose to either commit one file or the entire project.

To commit the entire project, right click on the project in your resource view, and choose Team->Commit.

If you want to preview the changes choose Team->Synchronize, which will show you what files are changed, and gives you a quick preview of the diffs in both incoming and outgoing mode.

Soraz
A: 

In some versions of Eclipse (or maybe some versions of Subclipse -- are you using SVN?) there was a toolbar button that you could click. It would eliminate the first 2 or 3 steps of your commit process. Maybe you can find that button on the toolbar editor (or perspective editor, or whatever they call it... it's been a while since I've used it).

Also, IMHO, you shouldn't be committing and THEN testing. You'll find things run a lot smoother if you test locally, then commit (and test again in a QA type system...). You probably already know that, so I'm going to assume there's a strange reason you can't test locally.

rmeador
right, too many library dependencies, etc. to setup locally
Edward Tanguay
can't find that button :-(
Edward Tanguay
There are two (at least) plugins that provide SVN integration for Eclipse. One is Subclipse, the other is something I can't remember right now. I think I was using Subclipse when I found that button, but it could have been the other. Which are you using?
rmeador
+2  A: 

The best I've been able to do is create a key binding for 'Commit' (under Preferences... General->Keys). Then you just need to click on the project and hit a key combination, which saves the whole right-click->Team->Commit... process.

If you just want to check in the file you are editing, you don't have to click anywhere, just hit the key combination, and the commit dialog pops up to commit the current file.

nathan
didn't know about key-binding, works awesomely, thanks
Edward Tanguay