From 7470ee685467e9dd7b1d6c0abf6e8ff174ed6e77 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Sat, 8 Jun 2013 22:31:19 +0100 Subject: Split util classes. --- EssentialsXMPP/nbproject/build-impl.xml | 17 ++++++++++++++--- EssentialsXMPP/nbproject/genfiles.properties | 4 ++-- .../src/com/earth2me/essentials/xmpp/XMPPManager.java | 7 ++++--- 3 files changed, 20 insertions(+), 8 deletions(-) (limited to 'EssentialsXMPP') diff --git a/EssentialsXMPP/nbproject/build-impl.xml b/EssentialsXMPP/nbproject/build-impl.xml index 7e2958bc2..24de0b0e1 100644 --- a/EssentialsXMPP/nbproject/build-impl.xml +++ b/EssentialsXMPP/nbproject/build-impl.xml @@ -395,6 +395,11 @@ is divided into following sections: + + + + + @@ -418,7 +423,7 @@ is divided into following sections: - + @@ -432,6 +437,9 @@ is divided into following sections: + + + @@ -559,7 +567,7 @@ is divided into following sections: - + @@ -573,6 +581,9 @@ is divided into following sections: + + + @@ -952,7 +963,7 @@ is divided into following sections: - + diff --git a/EssentialsXMPP/nbproject/genfiles.properties b/EssentialsXMPP/nbproject/genfiles.properties index 744ffaed2..61cf684cb 100644 --- a/EssentialsXMPP/nbproject/genfiles.properties +++ b/EssentialsXMPP/nbproject/genfiles.properties @@ -4,5 +4,5 @@ build.xml.stylesheet.CRC32=28e38971@1.42.1.45 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. nbproject/build-impl.xml.data.CRC32=1012a5dd -nbproject/build-impl.xml.script.CRC32=db083724 -nbproject/build-impl.xml.stylesheet.CRC32=6ddba6b6@1.53.1.46 +nbproject/build-impl.xml.script.CRC32=637fa98c +nbproject/build-impl.xml.stylesheet.CRC32=c6d2a60f@1.56.1.46 diff --git a/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java b/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java index ffe651d5b..21798521e 100644 --- a/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java +++ b/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java @@ -4,7 +4,8 @@ import com.earth2me.essentials.Console; import com.earth2me.essentials.EssentialsConf; import com.earth2me.essentials.IConf; import com.earth2me.essentials.IUser; -import com.earth2me.essentials.Util; +import com.earth2me.essentials.utils.StringUtil; +import com.earth2me.essentials.utils.FormatUtil; import java.io.File; import java.util.*; import java.util.logging.Handler; @@ -64,7 +65,7 @@ public class XMPPManager extends Handler implements MessageListener, ChatManager disconnect(); connect(); } - chat.sendMessage(Util.stripFormat(message)); + chat.sendMessage(FormatUtil.stripFormat(message)); return true; } } @@ -266,7 +267,7 @@ public class XMPPManager extends Handler implements MessageListener, ChatManager for (LogRecord logRecord : copy) { final String message = formatter.format(logRecord); - if (!XMPPManager.this.sendMessage(user, Util.stripLogColorFormat(message))) + if (!XMPPManager.this.sendMessage(user, FormatUtil.stripLogColorFormat(message))) { failedUsers.add(user); break; -- cgit v1.2.3