need your help with rails plugin

we are building a plugin for rails on eclipse platform so i need to
ask a question about that. how to make a plug in to allow user to
create a new file with whatever extension? hope you can help. thanx a
lot for your help in advance