How to add undo / redo buttons to toolbar in Eclipse?

后端 未结 4 1839
滥情空心
滥情空心 2020-12-25 12:25

I feel a bit embarrassed asking this questions, but how the heck can I get regular undo/redo buttons into the toolbar of eclipse?

I\'ve often to switch between Germa

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-25 12:53

    One way is to use custom plugin. In fact, such custom plugin doesn't need to do anything, only declare new toolbar contribution using existing undo/redo commands.

    I've built such plugin for you: http://www.foglyn.com/misc/undoredo_1.0.0.jar. There is absolutely no code, only plugin.xml:

    
    
    
       
          
                
                
                
                
                
             
          
       
    
    
    

    And MANIFEST.MF:

    Manifest-Version: 1.0
    Bundle-ManifestVersion: 2
    Bundle-Name: Undoredo
    Bundle-SymbolicName: undoredo;singleton:=true
    Bundle-Version: 1.0.0
    Bundle-RequiredExecutionEnvironment: J2SE-1.5
    Require-Bundle: org.eclipse.ui
    

    You can download it, and drop into your 'dropins' directory of Eclipse, restart, and you'll see Undo/Redo buttons on your toolbar.

    Works for me in Eclipse 3.4 and Eclipse 3.5M7.

提交回复
热议问题