X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2Fquelaton%2FGetConfigCommandImpl.java;h=1a8ffd8f821851f3d5e506f55634d83d2c1606de;hb=38a682c6c826befa8b291175c1801d02a8c22c62;hp=e35fdec74520876ad96225192803d0e8f8849263;hpb=bfc572d27b7fa9b55ca082981666d83bdde1065f;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 e35fdec..1a8ffd8 100644 --- a/src/main/java/net/pterodactylus/fcp/quelaton/GetConfigCommandImpl.java +++ b/src/main/java/net/pterodactylus/fcp/quelaton/GetConfigCommandImpl.java @@ -27,6 +27,7 @@ public class GetConfigCommandImpl implements GetConfigCommand { private final AtomicBoolean withSortOrder = new AtomicBoolean(); private final AtomicBoolean withExpertFlag = new AtomicBoolean(); private final AtomicBoolean withForceWriteFlag = new AtomicBoolean(); + private final AtomicBoolean withShortDescription = new AtomicBoolean(); public GetConfigCommandImpl(ExecutorService threadPool, ConnectionSupplier connectionSupplier) { this.threadPool = MoreExecutors.listeningDecorator(threadPool); @@ -64,6 +65,12 @@ public class GetConfigCommandImpl implements GetConfigCommand { } @Override + public GetConfigCommand withShortDescription() { + withShortDescription.set(true); + return this; + } + + @Override public ListenableFuture execute() { return threadPool.submit(this::executeDialog); } @@ -75,6 +82,7 @@ public class GetConfigCommandImpl implements GetConfigCommand { getConfig.setWithSortOrder(withSortOrder.get()); getConfig.setWithExpertFlag(withExpertFlag.get()); getConfig.setWithForceWriteFlag(withForceWriteFlag.get()); + getConfig.setWithShortDescription(withShortDescription.get()); try (GetConfigDialog getConfigDialog = new GetConfigDialog()) { return getConfigDialog.send(getConfig).get(); }