// Path: src/main/java/de/idrinth/stellaris/modtools/filesystem/DirectoryNotFoundException.java
// public class DirectoryNotFoundException extends IOException {
// 
//     public DirectoryNotFoundException(String string, Throwable thrwbl) {
//         super(string, thrwbl);
//     }
// 
// }
// 
// Path: src/main/java/de/idrinth/stellaris/modtools/filesystem/ModLocation.java
// public class ModLocation implements FileSystemLocation {
//     private final File directory;
// 
//     public ModLocation() throws DirectoryNotFoundException {
//         try {
//             this.directory = DirectoryLookup.getModDir();
//         } catch (IOException ex) {
//             throw new DirectoryNotFoundException("Steam Directory not avaible",ex);
//         }
//     }
// 
//     @Override
//     public File get() {
//         return directory;
//     }
// }
// 
// Path: src/main/java/de/idrinth/stellaris/modtools/process/AbstractQueueInitializer.java
// abstract public class AbstractQueueInitializer implements DataInitializer {
//     private boolean isInitialized = false;
//     protected final LinkedList<ProcessTask> tasks = new LinkedList<>();
// 
//     abstract protected void init();
//     
//     private void initOnce() {
//         if(isInitialized) {
//             return;
//         }
//         isInitialized = true;
//         init();
//     }
// 
//     @Override
//     public final ProcessTask poll() {
//         initOnce();
//         return tasks.poll();
//     }
// 
//     @Override
//     public final boolean hasNext() {
//         initOnce();
//         return !tasks.isEmpty();
//     }
// 
//     @Override
//     public int getQueueSize() {
//         return 20;
//     }
// }
// 
// Path: src/main/java/de/idrinth/stellaris/modtools/process/DataInitializer.java
// public interface DataInitializer {
//     ProcessTask poll();
//     boolean hasNext();
//     int getQueueSize();
// }


import de.idrinth.stellaris.modtools.filesystem.DirectoryNotFoundException;
import de.idrinth.stellaris.modtools.filesystem.ModLocation;
import de.idrinth.stellaris.modtools.process.AbstractQueueInitializer;
import de.idrinth.stellaris.modtools.process.DataInitializer;
import java.util.logging.Level;
import java.util.logging.Logger;
/*
 * Copyright (C) 2017 Björn Büttner
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package de.idrinth.stellaris.modtools.process5modcreation;


public class Process5Initializer extends AbstractQueueInitializer implements DataInitializer {
    @Override
    protected void init() {
        try {
// Path: src/main/java/de/idrinth/stellaris/modtools/filesystem/DirectoryNotFoundException.java
// public class DirectoryNotFoundException extends IOException {
// 
//     public DirectoryNotFoundException(String string, Throwable thrwbl) {
//         super(string, thrwbl);
//     }
// 
// }
// 
// Path: src/main/java/de/idrinth/stellaris/modtools/filesystem/ModLocation.java
// public class ModLocation implements FileSystemLocation {
//     private final File directory;
// 
//     public ModLocation() throws DirectoryNotFoundException {
//         try {
//             this.directory = DirectoryLookup.getModDir();
//         } catch (IOException ex) {
//             throw new DirectoryNotFoundException("Steam Directory not avaible",ex);
//         }
//     }
// 
//     @Override
//     public File get() {
//         return directory;
//     }
// }
// 
// Path: src/main/java/de/idrinth/stellaris/modtools/process/AbstractQueueInitializer.java
// abstract public class AbstractQueueInitializer implements DataInitializer {
//     private boolean isInitialized = false;
//     protected final LinkedList<ProcessTask> tasks = new LinkedList<>();
// 
//     abstract protected void init();
//     
//     private void initOnce() {
//         if(isInitialized) {
//             return;
//         }
//         isInitialized = true;
//         init();
//     }
// 
//     @Override
//     public final ProcessTask poll() {
//         initOnce();
//         return tasks.poll();
//     }
// 
//     @Override
//     public final boolean hasNext() {
//         initOnce();
//         return !tasks.isEmpty();
//     }
// 
//     @Override
//     public int getQueueSize() {
//         return 20;
//     }
// }
// 
// Path: src/main/java/de/idrinth/stellaris/modtools/process/DataInitializer.java
// public interface DataInitializer {
//     ProcessTask poll();
//     boolean hasNext();
//     int getQueueSize();
// }


// Path: src/main/java/de/idrinth/stellaris/modtools/process5modcreation/Process5Initializer.java
import de.idrinth.stellaris.modtools.filesystem.DirectoryNotFoundException;
import de.idrinth.stellaris.modtools.filesystem.ModLocation;
import de.idrinth.stellaris.modtools.process.AbstractQueueInitializer;
import de.idrinth.stellaris.modtools.process.DataInitializer;
import java.util.logging.Level;
import java.util.logging.Logger;

/*
 * Copyright (C) 2017 Björn Büttner
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package de.idrinth.stellaris.modtools.process5modcreation;


public class Process5Initializer extends AbstractQueueInitializer implements DataInitializer {
    @Override
    protected void init() {
        try {
            tasks.add(new CreateMod(new ModLocation()));