Improve CopyFilesNewProjectWizard to allow files and require less configuration
CopyFilesNewProjectWizard
has the following abstract method:
/**
* Returns a mapping of plug-in relative paths to copy and the project relative path to which to copy them. Use '/'
* as path separators. E.g. 'examples/example1' mapping to 'example1'.
*
* @return The mapping.
*/
protected abstract Map<String, String> getPathsToCopy();
This has two downsides:
- It only supports folders as keys. If files are supplied it crashes with an NPE.
- Each time a CIF example or benchmark model is added, the configuration needs to be changed.
It would be easier to just indicate which single folder in the examples project is to be copied by the wizard. Then all contents, both files and directories can be copied. Also, if any new files or folders are added to that folder to copy will also be copied automatically, requiring no changes to add new example of benchmark models.