aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/services/XClipboardService.java
diff options
context:
space:
mode:
authorDeepak Bhole <[email protected]>2010-12-06 15:34:01 -0500
committerDeepak Bhole <[email protected]>2010-12-06 15:34:01 -0500
commit6ca1a9a369b10703da9af8f8a1ced0f3b02ae5c2 (patch)
tree568f8e454db94fa8abc896b46ce8cac7a9f3b74d /netx/net/sourceforge/jnlp/services/XClipboardService.java
parent0d66adf24179c33bbdccaacc10d4c8a5f5e2cd54 (diff)
Fixed indentation and spacing for all .java files.
Added a new .settings directory which contains Eclipse preferences for code style.
Diffstat (limited to 'netx/net/sourceforge/jnlp/services/XClipboardService.java')
-rw-r--r--netx/net/sourceforge/jnlp/services/XClipboardService.java40
1 files changed, 20 insertions, 20 deletions
diff --git a/netx/net/sourceforge/jnlp/services/XClipboardService.java b/netx/net/sourceforge/jnlp/services/XClipboardService.java
index b00e6da..6f462e5 100644
--- a/netx/net/sourceforge/jnlp/services/XClipboardService.java
+++ b/netx/net/sourceforge/jnlp/services/XClipboardService.java
@@ -51,31 +51,31 @@ import java.awt.Toolkit;
*/
class XClipboardService implements ClipboardService {
- protected XClipboardService() {
- }
+ protected XClipboardService() {
+ }
- /**
- * Returns the contents of the system clipboard.
- */
- public java.awt.datatransfer.Transferable getContents(){
+ /**
+ * Returns the contents of the system clipboard.
+ */
+ public java.awt.datatransfer.Transferable getContents() {
- if (ServiceUtil.checkAccess(AccessType.CLIPBOARD_READ)) {
- Transferable t = Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null);
- return (Transferable) ServiceUtil.createPrivilegedProxy(
+ if (ServiceUtil.checkAccess(AccessType.CLIPBOARD_READ)) {
+ Transferable t = Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null);
+ return (Transferable) ServiceUtil.createPrivilegedProxy(
Transferable.class, t);
- } else {
- return null;
- }
+ } else {
+ return null;
}
-
- /**
- * Sets the contents of the system clipboard.
- */
- public void setContents(java.awt.datatransfer.Transferable contents) {
- if (ServiceUtil.checkAccess(AccessType.CLIPBOARD_WRITE)) {
- Toolkit.getDefaultToolkit().getSystemClipboard().setContents(
+ }
+
+ /**
+ * Sets the contents of the system clipboard.
+ */
+ public void setContents(java.awt.datatransfer.Transferable contents) {
+ if (ServiceUtil.checkAccess(AccessType.CLIPBOARD_WRITE)) {
+ Toolkit.getDefaultToolkit().getSystemClipboard().setContents(
contents, null);
- }
}
+ }
}