X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2Fquelaton%2FGetConfigCommandImpl.java;h=2d03b2ac93813661eba100f733ccffefcd5aeb25;hb=8d70659996b99bd55b677e7235005bc0fcb05e1b;hp=4c78c6896d70abe3cc03b0392d094fb828e6cb32;hpb=0194e21f0855ffc97f4f43e28dac4ba732e12c5a;p=jFCPlib.git diff --git a/src/main/java/net/pterodactylus/fcp/quelaton/GetConfigCommandImpl.java b/src/main/java/net/pterodactylus/fcp/quelaton/GetConfigCommandImpl.java index 4c78c68..2d03b2a 100644 --- a/src/main/java/net/pterodactylus/fcp/quelaton/GetConfigCommandImpl.java +++ b/src/main/java/net/pterodactylus/fcp/quelaton/GetConfigCommandImpl.java @@ -25,6 +25,7 @@ public class GetConfigCommandImpl implements GetConfigCommand { private final AtomicBoolean withCurrent = new AtomicBoolean(); private final AtomicBoolean withDefaults = new AtomicBoolean(); private final AtomicBoolean withSortOrder = new AtomicBoolean(); + private final AtomicBoolean withExpertFlag = new AtomicBoolean(); public GetConfigCommandImpl(ExecutorService threadPool, ConnectionSupplier connectionSupplier) { this.threadPool = MoreExecutors.listeningDecorator(threadPool); @@ -50,6 +51,12 @@ public class GetConfigCommandImpl implements GetConfigCommand { } @Override + public GetConfigCommand withExpertFlag() { + withExpertFlag.set(true); + return this; + } + + @Override public ListenableFuture execute() { return threadPool.submit(this::executeDialog); } @@ -59,6 +66,7 @@ public class GetConfigCommandImpl implements GetConfigCommand { getConfig.setWithCurrent(withCurrent.get()); getConfig.setWithDefaults(withDefaults.get()); getConfig.setWithSortOrder(withSortOrder.get()); + getConfig.setWithExpertFlag(withExpertFlag.get()); try (GetConfigDialog getConfigDialog = new GetConfigDialog()) { return getConfigDialog.send(getConfig).get(); }