http://w3facility.org/question/how-to-programmatically-new-a-java-class-which-implements-sepecified-interface-in-eclipse-plugin-development/java
OpenNewClassWizardAction wizard = new OpenNewClassWizardAction();eclipse
wizard.setOpenEditorOnFinish(false);ip
NewClassWizardPage page = new NewClassWizardPage();ci
page.setPackageFragmentRoot(sourceFolder, false);get
wizard.setConfiguredWizardPage(page);it
wizard.run();io
return (IType) wizard.getCreatedElement();class
add more here:cli
check which button use is clicked,plugin
if finished button is clicked : wizard.getCreatedElement() will not return null ,otherwise it will return null value.