ICompilationUnit asyncInterface = clientPackage.getCompilationUnit(getRemoteInterfaceName().concat("Async.java"));
IResource asyncFile = asyncInterface.getResource();
if (asyncFile.exists())
asyncFile.delete(true, null);
IPackageFragmentRoot sourceFolder = (IPackageFragmentRoot) clientPackage.getParent();
IJavaElement[] subPackages = sourceFolder.getChildren();
for (int i = 0; i < subPackages.length; i++) {
IPackageFragment packageFragment = (IPackageFragment) subPackages[i];
if (subPackages[i].getElementName().endsWith(Constants.SERVER_PACKAGE)) {
ICompilationUnit implClass = packageFragment.getCompilationUnit(getRemoteInterfaceName().concat("Impl.java"));
IResource implFile = implClass.getResource();
if (implFile.exists()) {
implFile.delete(true, null);
}
}
}
IFolder moduleFolder = (IFolder) sourceFolder.getCorrespondingResource();
moduleFolder.accept(new IResourceVisitor() {
public boolean visit(IResource resource) throws CoreException {
if (Util.isModuleXml(resource)) {