Skip to content

Commit d7d09ae

Browse files
Revert "Restore clipboard history for editor by using ExClipboard instead of directly accessing system clipboard"
1 parent 0b40a9d commit d7d09ae

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

platform/openide.text/src/org/openide/text/QuietEditorPane.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
import javax.swing.text.JTextComponent;
6060
import org.openide.util.Lookup;
6161
import org.openide.util.NbBundle;
62-
import org.openide.util.datatransfer.ExClipboard;
6362
import org.openide.windows.ExternalDropHandler;
6463
import org.openide.windows.TopComponent;
6564

@@ -352,8 +351,7 @@ public void exportAsDrag(JComponent comp, InputEvent e, int action) {
352351

353352
@Override
354353
public void exportToClipboard(JComponent comp, Clipboard clip, int action) {
355-
ExClipboard clipboard = Lookup.getDefault().lookup(ExClipboard.class);
356-
delegator.exportToClipboard(comp, clipboard != null ? clipboard : clip, action);
354+
delegator.exportToClipboard(comp, clip, action);
357355
}
358356

359357
@Override

0 commit comments

Comments
 (0)