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


I'm feeling a bit ashamed to ask this question, but how do I regroup regularly in the Eclipse toolbar? Can I get the button again? Z and Z have interchanged on those layouts I often had to switch between the German and English keyboard layouts and thus I would undo / redo I constantly trigger the wrong action for I have seen myself how I use it without other statistics: I only use the toolbar for this operation.

I have already tried Google and this way, as well as go through the perspective dialog, but I am not able to find what I am looking for: - (

One way is to use custom plugin In fact, such a custom plugin does not need to do anything, only Announce new toolbars contribution using existing undo / redo commands.

You've created such a plugin: plugin.xml only:

  & lt ;? xml version = "1.0" encoding = "UTF-8"? & Gt; & lt ;? Eclipse version = "3.4"? & Gt; Plugin & gt; & lt; extension point = "org.eclipse.ui.menus"> Menu listing location RII = "toolbar: org.eclipse.ui.main .toolbar? = Later additions "> toolbar id =" undoredo.toolbar "label =" undo / redo "& gt; & lt; command command.did =" org.eclipse.ui.edit. Undo "id =" undoredo.undo "style =" push ">   

and MANIFEST.MF:

  manifest-version: 1.0 bundle-manifestwarson: 2 bundle-name: undo-bundle-symmetic name: undoredo; Singleton: = true bundle-version: 1.0.0 bundle-required execution environment: J2SE-1.5 requirement-bundle: org.eclipse.ui  

You can download it, and Eclipse Drop in your 'dropins' directory, restart, and you will see the Undo / Redo button on your Toolbar.

Works for me in Eclipse 3.4 and Eclipse 3.5 M7.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -