2010-06-25 5 views
0

Il y a un bouton "Charger toutes les modifications sortantes" dans le panneau Synchroniser d'Eclipse. Un moyen de "cliquer" sans souris? Il n'y a pas une telle action dans les touches prefs-> general->Touches de raccourci Eclipse Synchronize

+0

Ceci est une action seulement que j'ai besoin de faire avec la souris. C'est pourquoi je veux trouver un moyen de le faire. Peut-être que quelqu'un connaît des plugins de macro ou une sorte de? – thik

Répondre

0

Il n'existe pas et je pense que je sais pourquoi: commettre ou mettre à jour devrait être une décision très consciente. Donc, en cliquant sur le bouton favorise ce genre de décision.

En général, vous pouvez utiliser Ctrl-Maj-L pour afficher la liste rapide des raccourcis pour les vues actuellement ouvertes.

1

J'ai créé un fichier Auto Hot Key juste pour cela. http://www.autohotkey.com/ J'espère que vous l'aimez!

; 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 
Questions connexes