diff options
author | Brian P. Hinz <bphinz@users.sf.net> | 2016-12-10 19:19:46 -0500 |
---|---|---|
committer | Brian P. Hinz <bphinz@users.sf.net> | 2016-12-10 19:19:46 -0500 |
commit | 4efd8150bb2d0d116042d57af180dfd8a4ea11c3 (patch) | |
tree | 6b1ec72aca9180c8b0d9550a0e74fb5de45c0b6c | |
parent | 91b12e34000547a3420b87b80666da13a6b2a0ae (diff) | |
download | tigervnc-4efd8150bb2d0d116042d57af180dfd8a4ea11c3.tar.gz tigervnc-4efd8150bb2d0d116042d57af180dfd8a4ea11c3.zip |
Whitespace cleanup
-rw-r--r-- | java/com/tigervnc/vncviewer/ClipboardDialog.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/java/com/tigervnc/vncviewer/ClipboardDialog.java b/java/com/tigervnc/vncviewer/ClipboardDialog.java index 1404c227..4a5d9f27 100644 --- a/java/com/tigervnc/vncviewer/ClipboardDialog.java +++ b/java/com/tigervnc/vncviewer/ClipboardDialog.java @@ -41,7 +41,7 @@ class ClipboardDialog extends Dialog { // Custom TransferHandler designed to limit the size of outbound // clipboard transfers to VncViewer.maxCutText.getValue() bytes. private LogWriter vlog = new LogWriter("VncTransferHandler"); - + public void exportToClipboard(JComponent c, Clipboard clip, int a) throws IllegalStateException { if (!(c instanceof JTextComponent)) return; @@ -58,7 +58,7 @@ class ClipboardDialog extends Dialog { StringSelection selection = new StringSelection(text); clip.setContents(selection, null); } - + public boolean importData(JComponent c, Transferable t) { if (canImport(c, t.getTransferDataFlavors())) { try { @@ -94,20 +94,19 @@ class ClipboardDialog extends Dialog { } return false; } - + public boolean canImport(JComponent c, DataFlavor[] flavors) { for (DataFlavor f : flavors) if (f.isMimeTypeEqual("text/plain") && - f.isRepresentationClassReader()) { + f.isRepresentationClassReader()) return true; - } return false; } } private class MyTextListener implements DocumentListener { public MyTextListener() { } - + public void changedUpdate(DocumentEvent e) { } public void insertUpdate(DocumentEvent e) { @@ -116,7 +115,7 @@ class ClipboardDialog extends Dialog { if (sendClipboard.getValue()) VncViewer.cc.writeClientCutText(text, text.length()); } - + public void removeUpdate(DocumentEvent e) { } } |