Rotate object in Editor by a button in Inspector ?

i want to make a button in inspector to rotate my object in editor.
how i can do it ?
for example there are 90 and 180 and other angle buttons into inspector
and when click on them, it applys rotates on object in editor.

Hi, you probably want to start with extending the Editor and EditorWindow pages. You can get the selected gameobject like this (the example even rotates the object). Hopefully that is enough to get you started. =D