You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by ne...@apache.org on 2025/05/01 09:03:47 UTC
(netbeans) 01/01: Revert "Restore clipboard history for editor by using ExClipboard instead of directly accessing system clipboard"
This is an automated email from the ASF dual-hosted git repository.
neilcsmith pushed a commit to branch revert-8462-exclipboard2
in repository https://gitbox.apache.org/repos/asf/netbeans.git
commit d7d09aea4e015cb57b6acf364a829db78775644a
Author: Neil C Smith <ne...@googlemail.com>
AuthorDate: Thu May 1 10:00:16 2025 +0100
Revert "Restore clipboard history for editor by using ExClipboard instead of directly accessing system clipboard"
---
platform/openide.text/src/org/openide/text/QuietEditorPane.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/platform/openide.text/src/org/openide/text/QuietEditorPane.java b/platform/openide.text/src/org/openide/text/QuietEditorPane.java
index 6a725bd61df..e737e316dec 100644
--- a/platform/openide.text/src/org/openide/text/QuietEditorPane.java
+++ b/platform/openide.text/src/org/openide/text/QuietEditorPane.java
@@ -59,7 +59,6 @@ import javax.swing.text.Document;
import javax.swing.text.JTextComponent;
import org.openide.util.Lookup;
import org.openide.util.NbBundle;
-import org.openide.util.datatransfer.ExClipboard;
import org.openide.windows.ExternalDropHandler;
import org.openide.windows.TopComponent;
@@ -352,8 +351,7 @@ final class QuietEditorPane extends JEditorPane {
@Override
public void exportToClipboard(JComponent comp, Clipboard clip, int action) {
- ExClipboard clipboard = Lookup.getDefault().lookup(ExClipboard.class);
- delegator.exportToClipboard(comp, clipboard != null ? clipboard : clip, action);
+ delegator.exportToClipboard(comp, clip, action);
}
@Override
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists