X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fmain%2FMain.java;h=0906ccd244dcdf466e24b289d8db38668362166a;hb=c63257e8cc0ba1a5aca9364b22171abe7279d479;hp=8f25230a1ea61543d2c68bb254529763ccbab445;hpb=10b165ebaa51eccec487500b32f0c7b3106923af;p=jSite2.git diff --git a/src/net/pterodactylus/jsite/main/Main.java b/src/net/pterodactylus/jsite/main/Main.java index 8f25230..0906ccd 100644 --- a/src/net/pterodactylus/jsite/main/Main.java +++ b/src/net/pterodactylus/jsite/main/Main.java @@ -20,6 +20,7 @@ package net.pterodactylus.jsite.main; import java.io.File; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -28,22 +29,21 @@ import javax.swing.UIManager.LookAndFeelInfo; import net.pterodactylus.jsite.core.CoreImpl; import net.pterodactylus.jsite.core.NodeManager; +import net.pterodactylus.jsite.core.ProjectManager; import net.pterodactylus.jsite.core.RequestManager; import net.pterodactylus.jsite.gui.SwingInterface; -import net.pterodactylus.jsite.project.ProjectManager; import net.pterodactylus.util.logging.Logging; /** * Main class that is called by the VM. - * + * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> - * @version $Id$ */ public class Main { /** * Main entry method for the VM. - * + * * @param args * The command-line arguments */ @@ -85,7 +85,7 @@ public class Main { /** * Tries to load the class with the given name and includes the look & feel * in the UIManager, if it exists. - * + * * @param name * The name of the look & feel * @param className @@ -99,14 +99,14 @@ public class Main { /** * Tries to load each look & feel and adds it to the list of installed look & * feels. - * + * * @see UIManager#setInstalledLookAndFeels(LookAndFeelInfo[]) * @param lookAndFeelInfos * The look & feels to add */ private void addLookAndFeels(LookAndFeelInfo... lookAndFeelInfos) { - List allLookAndFeelInfos = Arrays.asList(UIManager.getInstalledLookAndFeels()); - for (LookAndFeelInfo lookAndFeelInfo: lookAndFeelInfos) { + List allLookAndFeelInfos = new ArrayList(Arrays.asList(UIManager.getInstalledLookAndFeels())); + for (LookAndFeelInfo lookAndFeelInfo : lookAndFeelInfos) { try { Class.forName(lookAndFeelInfo.getClassName()); allLookAndFeelInfos.add(lookAndFeelInfo);