diff options
author | snowleo <schneeleo@gmail.com> | 2011-10-27 00:03:16 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-10-27 00:03:16 +0200 |
commit | 60b9d4fc80c881ce5548f7387c3de0d9fc5a7637 (patch) | |
tree | ca3fb9676c76f8700bda0bd21f9ffcc579d46c42 /EssentialsUpdate/src/com/earth2me/essentials/update/tasks | |
parent | 7622c5c5108f406d3fbb285de0d2446fdc3127dd (diff) | |
download | Essentials-60b9d4fc80c881ce5548f7387c3de0d9fc5a7637.tar Essentials-60b9d4fc80c881ce5548f7387c3de0d9fc5a7637.tar.gz Essentials-60b9d4fc80c881ce5548f7387c3de0d9fc5a7637.tar.lz Essentials-60b9d4fc80c881ce5548f7387c3de0d9fc5a7637.tar.xz Essentials-60b9d4fc80c881ce5548f7387c3de0d9fc5a7637.zip |
Some cleanup, refactoring of EssentialsHelp class
Diffstat (limited to 'EssentialsUpdate/src/com/earth2me/essentials/update/tasks')
-rw-r--r-- | EssentialsUpdate/src/com/earth2me/essentials/update/tasks/InstallModule.java | 8 | ||||
-rw-r--r-- | EssentialsUpdate/src/com/earth2me/essentials/update/tasks/SelfUpdate.java | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/EssentialsUpdate/src/com/earth2me/essentials/update/tasks/InstallModule.java b/EssentialsUpdate/src/com/earth2me/essentials/update/tasks/InstallModule.java index b97991a04..66eeb380d 100644 --- a/EssentialsUpdate/src/com/earth2me/essentials/update/tasks/InstallModule.java +++ b/EssentialsUpdate/src/com/earth2me/essentials/update/tasks/InstallModule.java @@ -3,7 +3,7 @@ package com.earth2me.essentials.update.tasks; import com.earth2me.essentials.update.GetFile; import com.earth2me.essentials.update.ModuleInfo; import com.earth2me.essentials.update.VersionInfo; -import com.earth2me.essentials.update.WorkListener; +import com.earth2me.essentials.update.AbstractWorkListener; import java.io.File; import java.net.URL; import java.util.logging.Level; @@ -12,16 +12,16 @@ import org.bukkit.Bukkit; public class InstallModule implements Runnable, Task { - protected final transient WorkListener listener; + protected final transient AbstractWorkListener listener; private final transient String moduleName; private final transient String fileName; - public InstallModule(final WorkListener listener, final String moduleName) + public InstallModule(final AbstractWorkListener listener, final String moduleName) { this(listener, moduleName, moduleName + ".jar"); } - public InstallModule(final WorkListener listener, final String moduleName, final String fileName) + public InstallModule(final AbstractWorkListener listener, final String moduleName, final String fileName) { this.listener = listener; this.moduleName = moduleName; diff --git a/EssentialsUpdate/src/com/earth2me/essentials/update/tasks/SelfUpdate.java b/EssentialsUpdate/src/com/earth2me/essentials/update/tasks/SelfUpdate.java index e9581b2cd..777e42517 100644 --- a/EssentialsUpdate/src/com/earth2me/essentials/update/tasks/SelfUpdate.java +++ b/EssentialsUpdate/src/com/earth2me/essentials/update/tasks/SelfUpdate.java @@ -1,14 +1,14 @@ package com.earth2me.essentials.update.tasks; -import com.earth2me.essentials.update.WorkListener; +import com.earth2me.essentials.update.AbstractWorkListener; import org.bukkit.Bukkit; -public class SelfUpdate extends WorkListener implements Task, Runnable +public class SelfUpdate extends AbstractWorkListener implements Task, Runnable { - private final transient WorkListener listener; + private final transient AbstractWorkListener listener; - public SelfUpdate(final WorkListener listener) + public SelfUpdate(final AbstractWorkListener listener) { super(listener.getPlugin(), listener.getNewVersionInfo()); this.listener = listener; |