2010-06-25 92 views
0

在eclipse的Synchronize面板中有一個按鈕「Upload All Outgoing Changes」。任何方式來「點擊」它沒有鼠標?在prefs-> general->鍵中沒有這樣的動作Eclipse同步熱鍵

+0

這是我需要用鼠標完成的唯一操作。這就是爲什麼我想找到一些方法來做到這一點。也許有人知道任何宏插件或某種? – thik 2010-06-29 11:40:36

回答

0

它不存在,我想我知道爲什麼:提交或更新應該是一個非常有意識的決定。所以點擊按鈕會促進這種決定。

一般來說,您可以使用Ctrl-Shift-L查看當前打開視圖的快捷鍵快捷鍵。

1

我爲此創建了一個自動熱鍵文件。 http://www.autohotkey.com/ 我希望你喜歡它!

; Eclipse Synchronize Override Upload 
; AutoHotkey Version: 1.x 
; Language:  English 
; Platform:  Win9x/NT 
; Author:  Taylor York <[email protected]> 
; 
; Script Function: 
; Upload Files to the Synchronize Window in Eclipse 
; 

;#NoTrayIcon 
#SingleInstance force 
DetectHiddenWindows, on 

; the title starts with 
SetTitleMatchMode 2 

SyncAndUpload()    ; Function 
{ 
    ; Get to the Synchronize Tab 
    Send {ALT down}   ; Hold Alt+Shift+Q down 
    Send {SHIFT down}  ; Eclipse seemed to dislike pressing every key at once 
    Send {Q down} 
    Send {Q up} 
    Send {SHIFT up} 
    Send {ALT up} 
    Sleep, 250 ; wait 250 milliseconds 
    Send y 

    ; Click Override and Upload 
    Send {Space}   ; When you go to the Synchronize tab, you have to select something. Space selects to top item 
    Send {AppsKey}   ; "Right Click"/Context menu the item that is selected 
    Send {o 2}   ; Press o twice (Override and Upload is the second O) 
} 


; Make sure we are in Eclipse, so we dont hijack other apps! 
#IfWinActive, ahk_class SWT_Window0 
{ 
    #IfWinActive, PHP   ; Title starts with PHP (this is used so it only works in PHP mode. 
    { 
     ^T:: 
     {  
      KeyWait Control   ; Wait to run until all keys are let go 
      KeyWait T 

      SyncAndUpload() 
      return 
     } 


     ^S:: 
     { 
      KeyWait Control   ; Wait to run until all keys are let go 
      KeyWait S 

      Send ^S 
      Sleep 250 
      SyncAndUpload() 
     } 

    return 
    } 
return 
} 




;endofscript