what i mean is that my application is a standalone application and not running through eclipse. So I want to use the eclipse API to allow refactoring but the dialogs and would have to be mine since my application is a standalone application
I think you have misunderstood few things. Eclipse is just an
IDE, just an editor (like your notepad / wordpad except that it has lots of features to make your life easy).
You can include any
java file / standalone application into eclipse using the File > Create New Project. Eclipse just adds two files .project and .classpath to your source folder. Thats it.
So now, I dont understand what difficulties you have in importing your standalone application into eclipse and do all your refactoring. Ofcourse, when it comes to deploying your standalone application, you will just give the jar / classes only (you wont include the two files generated by eclipse - .eclipse and . classpath).
There is one thing i am not sure about your question. Refactoring is a process of modifying one or more pieces of source codes. This is done by the software developer as part of the software development. What I dont understand is that you keep telling that "you want to allow your user to refactor" and "dialogues should be mine"... which gives me the impression that you want the users of your deployed application to modify the source code? Why?? If I have misunderstood the question, please correct me. Or could you be more clearer with your question, so that I can be of more assistance?
MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)