Skip to content
Snippets Groups Projects
Commit b3f6ae6c authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#157 - refactor: renamed class

parent c4f2b1b7
Branches
Tags
No related merge requests found
......@@ -9,7 +9,7 @@ import de.thecodelabs.utils.threading.Worker;
import de.thecodelabs.utils.ui.NVC;
import de.thecodelabs.utils.util.SystemUtils;
import de.thecodelabs.versionizer.service.UpdateService;
import de.tobias.playpad.design.ModernDesignHandler;
import de.tobias.playpad.design.ModernDesignProvider;
import de.tobias.playpad.initialize.*;
import de.tobias.playpad.plugin.*;
import de.tobias.playpad.profile.ProfileNotFoundException;
......@@ -65,7 +65,7 @@ public class PlayPadImpl implements PlayPad {
private UpdateService updateService;
protected GlobalSettings globalSettings;
private ModernDesignHandler modernDesign;
private ModernDesignProvider modernDesign;
private Session session;
......@@ -239,11 +239,11 @@ public class PlayPadImpl implements PlayPad {
return parameters;
}
public ModernDesignHandler getModernDesign() {
public ModernDesignProvider getModernDesign() {
return modernDesign;
}
void setModernDesign(ModernDesignHandler modernDesign) {
void setModernDesign(ModernDesignProvider modernDesign) {
this.modernDesign = modernDesign;
}
......
......@@ -12,7 +12,7 @@ import de.thecodelabs.utils.ui.Alerts;
import de.thecodelabs.utils.util.OS;
import de.thecodelabs.utils.util.OS.OSType;
import de.thecodelabs.utils.util.SystemUtils;
import de.tobias.playpad.design.ModernDesignHandlerImpl;
import de.tobias.playpad.design.ModernDesignProviderImpl;
import de.tobias.playpad.design.ModernStyleableImpl;
import de.tobias.playpad.profile.ref.ProfileReferenceManager;
import de.tobias.playpad.project.Project;
......@@ -108,7 +108,7 @@ public class PlayPadMain extends Application {
impl.setIcon(stageIcon, getClass().getClassLoader().getResourceAsStream(ICON_PATH));
PlayPadPlugin.setStyleable(new ModernStyleableImpl());
impl.setModernDesign(new ModernDesignHandlerImpl());
impl.setModernDesign(new ModernDesignProviderImpl());
PlayPadPlugin.setInstance(impl);
}
......
......@@ -3,7 +3,8 @@ package de.tobias.playpad.design;
import de.tobias.playpad.design.modern.ModernCartDesignHandler;
import de.tobias.playpad.design.modern.ModernGlobalDesignHandler;
public class ModernDesignHandlerImpl implements ModernDesignHandler {
public class ModernDesignProviderImpl implements ModernDesignProvider
{
private ModernCartDesignHandler cartDesignHandler;
private ModernGlobalDesignHandler globalDesignHandler;
......
......@@ -2,7 +2,7 @@ package de.tobias.playpad.pad.listener;
import de.tobias.playpad.PlayPadMain;
import de.tobias.playpad.action.actions.CartAction;
import de.tobias.playpad.design.ModernDesignHandler;
import de.tobias.playpad.design.ModernDesignProvider;
import de.tobias.playpad.design.modern.ModernGlobalDesignHandler;
import de.tobias.playpad.design.modern.model.ModernCartDesign;
import de.tobias.playpad.design.modern.model.ModernGlobalDesign;
......@@ -109,7 +109,7 @@ public class PadPositionListener implements Runnable, IPadPositionListener {
final ModernGlobalDesign globalDesign = Profile.currentProfile().getProfileSettings().getDesign();
final ModernCartDesign cartDesign = padSettings.getDesign();
final ModernDesignHandler modernDesign = PlayPadMain.getProgramInstance().getModernDesign();
final ModernDesignProvider modernDesign = PlayPadMain.getProgramInstance().getModernDesign();
final ModernGlobalDesignHandler handler = modernDesign.global();
......@@ -131,8 +131,7 @@ public class PadPositionListener implements Runnable, IPadPositionListener {
warningThread = null;
}
PadSettings padSettings = pad.getPadSettings();
final ModernDesignHandler modernDesign = PlayPadMain.getProgramInstance().getModernDesign();
final ModernDesignProvider modernDesign = PlayPadMain.getProgramInstance().getModernDesign();
final ModernGlobalDesignHandler handler = modernDesign.global();
handler.stopWarning(controller);
......
......@@ -3,7 +3,8 @@ package de.tobias.playpad.design;
import de.tobias.playpad.design.modern.ModernCartDesignHandler;
import de.tobias.playpad.design.modern.ModernGlobalDesignHandler;
public interface ModernDesignHandler {
public interface ModernDesignProvider
{
ModernGlobalDesignHandler global();
ModernCartDesignHandler cart();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment