diff options
author | Lorenz <lo.scherf@gmail.com> | 2022-08-06 23:00:59 +0200 |
---|---|---|
committer | Lorenz <lo.scherf@gmail.com> | 2022-08-06 23:00:59 +0200 |
commit | 73191b9b57400e359d9636947df3e7de4957bb11 (patch) | |
tree | a2ea6152abb5bf439e6d3953c6f6dc8a9593875f /src/main/java/at/hannibal2/skyhanni/config | |
parent | ad9aea3e82ff91e949e6068c540a3c6c0b69a53a (diff) | |
download | skyhanni-73191b9b57400e359d9636947df3e7de4957bb11.tar.gz skyhanni-73191b9b57400e359d9636947df3e7de4957bb11.tar.bz2 skyhanni-73191b9b57400e359d9636947df3e7de4957bb11.zip |
moved debug into clipboard
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/gui/utils/Utils.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/gui/utils/Utils.java b/src/main/java/at/hannibal2/skyhanni/config/gui/utils/Utils.java index 77095bcd2..6b5bb8097 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/gui/utils/Utils.java +++ b/src/main/java/at/hannibal2/skyhanni/config/gui/utils/Utils.java @@ -1,5 +1,7 @@ package at.hannibal2.skyhanni.config.gui.utils; +import java.awt.*; +import java.awt.datatransfer.StringSelection; import java.math.RoundingMode; import java.nio.FloatBuffer; import java.text.DecimalFormat; @@ -364,4 +366,8 @@ public class Utils { if (!stack.getTagCompound().getCompoundTag("ExtraAttributes").hasKey("id")) return null; return stack.getTagCompound().getCompoundTag("ExtraAttributes").getString("id"); } + public static void copyToClipboard(String str) { + Toolkit.getDefaultToolkit().getSystemClipboard() + .setContents(new StringSelection(str), null); + } } |