Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.search/search/org/eclipse/search/internal/ui/CopyToClipboardAction.java')
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/ui/CopyToClipboardAction.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/ui/CopyToClipboardAction.java b/org.eclipse.search/search/org/eclipse/search/internal/ui/CopyToClipboardAction.java
index 696ad75105d..31b56c3278a 100644
--- a/org.eclipse.search/search/org/eclipse/search/internal/ui/CopyToClipboardAction.java
+++ b/org.eclipse.search/search/org/eclipse/search/internal/ui/CopyToClipboardAction.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2014 IBM Corporation and others.
+ * Copyright (c) 2000, 2015 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -109,7 +109,7 @@ public class CopyToClipboardAction extends Action {
IBaseLabelProvider labelProvider= fViewer.getLabelProvider();
String lineDelim= System.getProperty("line.separator"); //$NON-NLS-1$
StringBuffer buf= new StringBuffer();
- Iterator iter= getSelection();
+ Iterator<?> iter= getSelection();
while (iter.hasNext()) {
if (buf.length() > 0) {
buf.append(lineDelim);
@@ -141,11 +141,11 @@ public class CopyToClipboardAction extends Action {
}
}
- private Iterator getSelection() {
+ private Iterator<?> getSelection() {
ISelection s= fViewer.getSelection();
if (s instanceof IStructuredSelection)
return ((IStructuredSelection)s).iterator();
- return Collections.EMPTY_LIST.iterator();
+ return Collections.emptyList().iterator();
}
private void copyToClipboard(Clipboard clipboard, String str, Shell shell) {

Back to the top