From efab8f7e243952610abeae128ebdbc7dcbf4aa95 Mon Sep 17 00:00:00 2001 From: BONNe1704 Date: Thu, 17 Jan 2019 11:36:39 +0200 Subject: [PATCH] Improve GUIs naming. --- .../admin/{ChallengesAdminGUI.java => AdminGUI.java} | 4 ++-- .../{ChallengeEditGUI.java => EditChallengeGUI.java} | 6 +++--- .../panel/admin/{LevelEditGUI.java => EditLevelGUI.java} | 8 ++++---- .../{ChallengesSettingsGUI.java => EditSettingsGUI.java} | 6 +++--- .../panel/admin/{UserListGUI.java => ListUsersGUI.java} | 6 +++--- 5 files changed, 15 insertions(+), 15 deletions(-) rename src/main/java/world/bentobox/challenges/panel/admin/{ChallengesAdminGUI.java => AdminGUI.java} (98%) rename src/main/java/world/bentobox/challenges/panel/admin/{ChallengeEditGUI.java => EditChallengeGUI.java} (99%) rename src/main/java/world/bentobox/challenges/panel/admin/{LevelEditGUI.java => EditLevelGUI.java} (98%) rename src/main/java/world/bentobox/challenges/panel/admin/{ChallengesSettingsGUI.java => EditSettingsGUI.java} (95%) rename src/main/java/world/bentobox/challenges/panel/admin/{UserListGUI.java => ListUsersGUI.java} (97%) diff --git a/src/main/java/world/bentobox/challenges/panel/admin/ChallengesAdminGUI.java b/src/main/java/world/bentobox/challenges/panel/admin/AdminGUI.java similarity index 98% rename from src/main/java/world/bentobox/challenges/panel/admin/ChallengesAdminGUI.java rename to src/main/java/world/bentobox/challenges/panel/admin/AdminGUI.java index 3417074..7f0f405 100644 --- a/src/main/java/world/bentobox/challenges/panel/admin/ChallengesAdminGUI.java +++ b/src/main/java/world/bentobox/challenges/panel/admin/AdminGUI.java @@ -18,7 +18,7 @@ import world.bentobox.challenges.panel.CommonGUI; /** * This class contains Main */ -public class ChallengesAdminGUI extends CommonGUI +public class AdminGUI extends CommonGUI { // --------------------------------------------------------------------- // Section: Variables @@ -61,7 +61,7 @@ public class ChallengesAdminGUI extends CommonGUI /** * {@inheritDoc} */ - public ChallengesAdminGUI(ChallengesAddon addon, + public AdminGUI(ChallengesAddon addon, World world, User user, String topLabel, diff --git a/src/main/java/world/bentobox/challenges/panel/admin/ChallengeEditGUI.java b/src/main/java/world/bentobox/challenges/panel/admin/EditChallengeGUI.java similarity index 99% rename from src/main/java/world/bentobox/challenges/panel/admin/ChallengeEditGUI.java rename to src/main/java/world/bentobox/challenges/panel/admin/EditChallengeGUI.java index 874d92a..84cf021 100644 --- a/src/main/java/world/bentobox/challenges/panel/admin/ChallengeEditGUI.java +++ b/src/main/java/world/bentobox/challenges/panel/admin/EditChallengeGUI.java @@ -23,7 +23,7 @@ import world.bentobox.challenges.panel.CommonGUI; * This class contains all necessary methods that creates GUI and allow to edit challenges * properties. */ -public class ChallengeEditGUI extends CommonGUI +public class EditChallengeGUI extends CommonGUI { // --------------------------------------------------------------------- // Section: Constructors @@ -34,7 +34,7 @@ public class ChallengeEditGUI extends CommonGUI * {@inheritDoc} * @param challenge challenge that needs editing. */ - public ChallengeEditGUI(ChallengesAddon addon, + public EditChallengeGUI(ChallengesAddon addon, World world, User user, Challenges challenge, @@ -49,7 +49,7 @@ public class ChallengeEditGUI extends CommonGUI * {@inheritDoc} * @param challenge challenge that needs editing. */ - public ChallengeEditGUI(ChallengesAddon addon, + public EditChallengeGUI(ChallengesAddon addon, World world, User user, Challenges challenge, diff --git a/src/main/java/world/bentobox/challenges/panel/admin/LevelEditGUI.java b/src/main/java/world/bentobox/challenges/panel/admin/EditLevelGUI.java similarity index 98% rename from src/main/java/world/bentobox/challenges/panel/admin/LevelEditGUI.java rename to src/main/java/world/bentobox/challenges/panel/admin/EditLevelGUI.java index 5dfc036..7b12de6 100644 --- a/src/main/java/world/bentobox/challenges/panel/admin/LevelEditGUI.java +++ b/src/main/java/world/bentobox/challenges/panel/admin/EditLevelGUI.java @@ -21,7 +21,7 @@ import world.bentobox.challenges.panel.CommonGUI; /** * This class contains all necessary elements to create Levels Edit GUI. */ -public class LevelEditGUI extends CommonGUI +public class EditLevelGUI extends CommonGUI { // --------------------------------------------------------------------- // Section: Constructors @@ -32,7 +32,7 @@ public class LevelEditGUI extends CommonGUI * {@inheritDoc} * @param challengeLevel ChallengeLevel that must be edited. */ - public LevelEditGUI(ChallengesAddon addon, + public EditLevelGUI(ChallengesAddon addon, World world, User user, ChallengeLevels challengeLevel, @@ -47,7 +47,7 @@ public class LevelEditGUI extends CommonGUI * {@inheritDoc} * @param challengeLevel ChallengeLevel that must be edited. */ - public LevelEditGUI(ChallengesAddon addon, + public EditLevelGUI(ChallengesAddon addon, World world, User user, ChallengeLevels challengeLevel, @@ -253,7 +253,7 @@ public class LevelEditGUI extends CommonGUI icon(challenge.getIcon()). clickHandler((panel, user1, clickType, slot) -> { // Open challenges edit screen. - new ChallengeEditGUI(this.addon, + new EditChallengeGUI(this.addon, this.world, this.user, challenge, diff --git a/src/main/java/world/bentobox/challenges/panel/admin/ChallengesSettingsGUI.java b/src/main/java/world/bentobox/challenges/panel/admin/EditSettingsGUI.java similarity index 95% rename from src/main/java/world/bentobox/challenges/panel/admin/ChallengesSettingsGUI.java rename to src/main/java/world/bentobox/challenges/panel/admin/EditSettingsGUI.java index 13d62b4..a8a2252 100644 --- a/src/main/java/world/bentobox/challenges/panel/admin/ChallengesSettingsGUI.java +++ b/src/main/java/world/bentobox/challenges/panel/admin/EditSettingsGUI.java @@ -15,7 +15,7 @@ import world.bentobox.challenges.panel.CommonGUI; * This Class creates GUI that allows to change Challenges Addon Settings via in-game * menu. */ -public class ChallengesSettingsGUI extends CommonGUI +public class EditSettingsGUI extends CommonGUI { // --------------------------------------------------------------------- // Section: Constructors @@ -25,7 +25,7 @@ public class ChallengesSettingsGUI extends CommonGUI /** * {@inheritDoc} */ - public ChallengesSettingsGUI(ChallengesAddon addon, + public EditSettingsGUI(ChallengesAddon addon, World world, User user, String topLabel, @@ -38,7 +38,7 @@ public class ChallengesSettingsGUI extends CommonGUI /** * {@inheritDoc} */ - public ChallengesSettingsGUI(ChallengesAddon addon, + public EditSettingsGUI(ChallengesAddon addon, World world, User user, String topLabel, diff --git a/src/main/java/world/bentobox/challenges/panel/admin/UserListGUI.java b/src/main/java/world/bentobox/challenges/panel/admin/ListUsersGUI.java similarity index 97% rename from src/main/java/world/bentobox/challenges/panel/admin/UserListGUI.java rename to src/main/java/world/bentobox/challenges/panel/admin/ListUsersGUI.java index 3ee1232..63c99ae 100644 --- a/src/main/java/world/bentobox/challenges/panel/admin/UserListGUI.java +++ b/src/main/java/world/bentobox/challenges/panel/admin/ListUsersGUI.java @@ -20,7 +20,7 @@ import world.bentobox.challenges.panel.CommonGUI; /** * This class contains methods that allows to select specific user. */ -public class UserListGUI extends CommonGUI +public class ListUsersGUI extends CommonGUI { // --------------------------------------------------------------------- // Section: Variables @@ -56,7 +56,7 @@ public class UserListGUI extends CommonGUI /** * {@inheritDoc} */ - public UserListGUI(ChallengesAddon addon, + public ListUsersGUI(ChallengesAddon addon, World world, User user, String topLabel, String permissionPrefix) { @@ -67,7 +67,7 @@ public class UserListGUI extends CommonGUI /** * {@inheritDoc} */ - public UserListGUI(ChallengesAddon addon, + public ListUsersGUI(ChallengesAddon addon, World world, User user, String topLabel,