public static void copyExtendedModuleFiles(IFile specRootFile,IPath targetFolderPath,IProgressMonitor monitor,int STEP,IProject project) throws CoreException {
  List<String> extendedModules=ToolboxHandle.getExtendedModules(specRootFile.getName());
  IFile moduleFile=null;
  for (int i=0; i < extendedModules.size(); i++) {
    String module=extendedModules.get(i);
    if (ToolboxHandle.isUserModule(module)) {
      moduleFile=ResourceHelper.getLinkedFile(project,module,false);
      if (moduleFile != null) {
        moduleFile.copy(targetFolderPath.append(moduleFile.getProjectRelativePath()),IResource.DERIVED | IResource.FORCE,new SubProgressMonitor(monitor,STEP / extendedModules.size()));
      }
    }
  }
}

public static void copyExtendedModuleFiles ( IFile specRootFile , IPath targetFolderPath , IProgressMonitor monitor , int STEP , IProject project ) throws CoreException { List < String > extendedModules = ToolboxHandle . getExtendedModules ( specRootFile . getName ( ) ) ; IFile moduleFile = null ; for ( int i = 0 ; i < extendedModules . size ( ) ; i ++ ) { String module = extendedModules . get ( i ) ; if ( ToolboxHandle . isUserModule ( module ) ) { moduleFile = ResourceHelper . getLinkedFile ( project , module , false ) ; if ( moduleFile != null ) { moduleFile . copy ( targetFolderPath . append ( moduleFile . getProjectRelativePath ( ) ) , IResource . DERIVED | IResource . FORCE , new SubProgressMonitor ( monitor , STEP / extendedModules . size ( ) ) ) ; } } } }
copies the module files that are extended by specrootfile into the folder given by targetfolderpath .
