From 45d86dcd1347e7a2ce1b7d887a98771be7a325e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Romero?= Date: Sat, 3 Aug 2019 00:01:24 +0200 Subject: [PATCH] Modifying the order of elements in new unit dialog --- src/main/java/com/adr/helloiot/TopicInfoBuilder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/adr/helloiot/TopicInfoBuilder.java b/src/main/java/com/adr/helloiot/TopicInfoBuilder.java index a4d2823..d95f114 100644 --- a/src/main/java/com/adr/helloiot/TopicInfoBuilder.java +++ b/src/main/java/com/adr/helloiot/TopicInfoBuilder.java @@ -37,18 +37,18 @@ public class TopicInfoBuilder { private Map factories = new LinkedHashMap<>(); public static final TopicInfoBuilder INSTANCE = new TopicInfoBuilder(); - + private TopicInfoBuilder() { put(new TopicInfoFactoryView()); put(new TopicInfoFactoryEdit()); put(new TopicInfoFactorySend()); + put(new TopicInfoFactoryGauge()); put(new TopicInfoFactorySwitch()); put(new TopicInfoFactoryMessagesPublish()); put(new TopicInfoFactoryMessagesSubscribe()); put(new TopicInfoFactoryCode()); - put(new TopicInfoFactoryGauge()); } - + private void put(TopicInfoFactory factory) { factories.put(factory.getType(), factory); }