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);
}
}