Package org.apache.openejb.helper.annotation.wizards

Examples of org.apache.openejb.helper.annotation.wizards.EJBMigrationRefactoring


  /**
   * @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$
View Full Code Here

TOP

Related Classes of org.apache.openejb.helper.annotation.wizards.EJBMigrationRefactoring

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.