if (!s.isEmpty()) {
PluginLogDialog pld = new PluginLogDialog(); /*if (!s.isEmpty()) {
    private static void reportPluginMessages(Stack s) {        // TODO: maybe have a nice dialog with a scrollbar, in case there are        // a lot of messages...        Preferences prefs = TiledConfiguration.node("io");        if (prefs.getBoolean("reportWarnings", false)) {            if (!s.isEmpty()) {                Iterator itr = s.iterator();                StringBuffer warnings = new StringBuffer();                while (itr.hasNext()) {                    warnings.append(itr.next()).append("\n");                }                JOptionPane.showMessageDialog(null, warnings.toString(),                        "Loading Messages",                        JOptionPane.INFORMATION_MESSAGE);            }        }    }