Examples of NewInterfaceWizardPage


Examples of org.eclipse.jdt.ui.wizards.NewInterfaceWizardPage

          IJavaElement iface = javaProject.findElement(new Path(pkg + "."+ ifName + ".java"));
         
          if (iface == null) {
            IPackageFragment pkgFrag = getOrCreatePackage(pkg, javaProject);
           
            NewInterfaceWizardPage newIfWizard = new NewInterfaceWizardPage();
            newIfWizard.setAddComments(false, false);
            newIfWizard.setPackageFragment(pkgFrag, false);
            newIfWizard.setTypeName(ifName, false);
           
            for (String interfc : superInterfaces) {
              newIfWizard.addSuperInterface(interfc);
            }
           
            try {
              newIfWizard.createType(null);
            } catch (Exception e) {
              throw new ArchMapperException("Error creating new interface: "+ e.getMessage(), e);
            }       
          }
         
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.