/**
* @see IActionDelegate#run(IAction)
*/
public void run(IAction action) {
EJBMigrationRefactoring refactoring = new EJBMigrationRefactoring(ResourcesPlugin.getWorkspace().getRoot());
if (resource instanceof IProject || resource instanceof IFile) {
refactoring.setProject(resource.getProject());
}
if (resource instanceof IFile) {
refactoring.setEjbJarXmlFile(resource.getProjectRelativePath().toString());
}
RefactoringWizardOpenOperation op = new RefactoringWizardOpenOperation(new EJBMigrationWizard(refactoring, RefactoringWizard.WIZARD_BASED_USER_INTERFACE));
try {
op.run(Activator.getWorkbenchWindow().getShell(), Messages.getString("org.apache.openejb.helper.annotation.refactoringWizardDialogTitle")); //$NON-NLS-1$