X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2Fquelaton%2FGetConfigCommandImpl.java;h=c2095b3ce31b05d45db543591c82ff7574129d20;hb=52084c776e2569d6b1fbcfe61e4923a96a38842c;hp=cc78f96535785341d82fd02e984a49579dd6bdda;hpb=a8585bf212faaadb2fbf691ef89516fe72c1fa73;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 cc78f96..c2095b3 100644 --- a/src/main/java/net/pterodactylus/fcp/quelaton/GetConfigCommandImpl.java +++ b/src/main/java/net/pterodactylus/fcp/quelaton/GetConfigCommandImpl.java @@ -29,6 +29,7 @@ public class GetConfigCommandImpl implements GetConfigCommand { private final AtomicBoolean withForceWriteFlag = new AtomicBoolean(); private final AtomicBoolean withShortDescription = new AtomicBoolean(); private final AtomicBoolean withLongDescription = new AtomicBoolean(); + private final AtomicBoolean withDataTypes = new AtomicBoolean(); public GetConfigCommandImpl(ExecutorService threadPool, ConnectionSupplier connectionSupplier) { this.threadPool = MoreExecutors.listeningDecorator(threadPool); @@ -78,6 +79,12 @@ public class GetConfigCommandImpl implements GetConfigCommand { } @Override + public GetConfigCommand withDataTypes() { + withDataTypes.set(true); + return this; + } + + @Override public ListenableFuture execute() { return threadPool.submit(this::executeDialog); } @@ -91,6 +98,7 @@ public class GetConfigCommandImpl implements GetConfigCommand { getConfig.setWithForceWriteFlag(withForceWriteFlag.get()); getConfig.setWithShortDescription(withShortDescription.get()); getConfig.setWithLongDescription(withLongDescription.get()); + getConfig.setWithDataTypes(withDataTypes.get()); try (GetConfigDialog getConfigDialog = new GetConfigDialog()) { return getConfigDialog.send(getConfig).get(); }