#
#   edit.sh  -  edit file of any type
#
set file $_passed
alias center "%a echo @center( $a 77 )

if $file <> ""
 class.sh toolmanager
 action edit $file
 set err $_lasterr
 if $err = 10
  center
  center "I could not determine the type of this file."
 endif
 if $err = 11
  center
  center "I don't know how to edit this type of file."
 endif
 if $err = 12
  center
  center "I could not execute the program to edit this file."
 endif
else
 center
 center "* * *  EDIT  * * *"
 center
 center
 center "Drop any text/graphic/sound icon on this icon."
 center "The appropriate program to modify the file will be loaded."
 center
 center "To modify the various programs used for editing, read
 center "the chapter 'object oriented features' in your csh.doc.
 center
 center
 center "Click close button when done
endif
