From: SourceForge.net <no...@so...> - 2008-10-28 22:36:03
|
Bugs item #2201518, was opened at 2008-10-27 11:30 Message generated for change (Comment added) made by ezust You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=2201518&group_id=588 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Works For Me Priority: 5 Private: No Submitted By: dmusicant (dmusicant) Assigned to: Nobody/Anonymous (nobody) Summary: KDE Klipper interferes with jEdit clipboard Initial Comment: When you select text on a line with "Shift+End" or "Shift+Home" and then try to copy the text (either by typing "Control+c" or right-clicking and selecting "copy"), it does not copy ANY of the text. I am guessing that somehow, the shift+home/end key combo is not sending the cursor/caret position to the proper method. I am using: * jEdit 4.3pre15 * OpenSUSE 11.0 Operating System * JDK 1.5.0_16 ---------------------------------------------------------------------- >Comment By: Alan Ezust (ezust) Date: 2008-10-28 15:35 Message: It could be a bug in Klipper that was later fixed. I can use Klipper with jEdit without any problems. klipper 0.9.7 / kde 3.5.9 / jdk 1.6 I did notice when you go to "configure klipper" you have some options, such as "actions disabled", "synchronize contents of clipboard and selection", and "ignore selection". Maybe one of those options will change the behavior for you. or maybe upgrading to a newer version of klipper/java/KDE. ---------------------------------------------------------------------- Comment By: dmusicant (dmusicant) Date: 2008-10-28 14:34 Message: Yes, they were reaching Klipper. The weird thing is that when I first start up jEdit, my very first selection and copy, DOES copy. However, any ensuing copy attempts are sucked into the vortex that is Klipper. >:( ---------------------------------------------------------------------- Comment By: Alan Ezust (ezust) Date: 2008-10-28 13:39 Message: I don't know very much about Klipper, except that it interferes with other programs I've used too (such as Froglogic Squish, which is not a java app). So whenever i have clipboard problems, I try quiting out of Klipper and my problem usually goes away. is your copied text reaching Klipper? ---------------------------------------------------------------------- Comment By: dmusicant (dmusicant) Date: 2008-10-28 12:38 Message: Thank you! It was Klipper interfering with it! Why does it interfere with jEdit but not with Netbeans? What is jEdit doing differently? ---------------------------------------------------------------------- Comment By: Alan Ezust (ezust) Date: 2008-10-28 10:38 Message: I can't reproduce this under Debian/KDE. Are you using some other clipboard tool that is interfering with jEdit, such as "Klipper"? Can you see the contents copied when you open the "registers" dockable? ---------------------------------------------------------------------- Comment By: dmusicant (dmusicant) Date: 2008-10-28 08:34 Message: OK, with some quick research, this is definitely a jEdit issue on OpenSUSE. If you use the following sample program, the cut and paste works perfectly on OpenSUSE. it's only jEdit (BOTH 4.2 and 4.3pre15) that does not. import java.awt.BorderLayout; import java.awt.Container; import java.util.Hashtable; import javax.swing.Action; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTextArea; import javax.swing.JTextField; import javax.swing.text.DefaultEditorKit; public class TextAreaDemo public class TextAreaDemo { public class TextAreaDemo(String args[]) { JFrame frame = new JFrame("Cut/Paste Example"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Container content = frame.getContentPane(); JTextField textField = new JTextField(); JTextArea textArea = new JTextArea(); JScrollPane scrollPane = new JScrollPane(textArea); content.add(textField, BorderLayout.NORTH); content.add(scrollPane, BorderLayout.CENTER); Action actions[] = textField.getActions(); Action cutAction = TextUtilities.findAction(actions, DefaultEditorKit.cutAction); Action copyAction = TextUtilities.findAction(actions, DefaultEditorKit.copyAction); Action pasteAction = TextUtilities.findAction(actions, DefaultEditorKit.pasteAction); JPanel panel = new JPanel(); content.add(panel, BorderLayout.SOUTH); JButton cutButton = new JButton(cutAction); cutButton.setText("Cut"); panel.add(cutButton); JButton copyButton = new JButton(copyAction); copyButton.setText("Copy"); panel.add(copyButton); JButton pasteButton = new JButton(pasteAction); pasteButton.setText("Paste"); panel.add(pasteButton); frame.setSize(250, 250); frame.setVisible(true); } } class TextUtilities { private TextUtilities() { } public static Action findAction(Action actions[], String key) { Hashtable commands = new Hashtable(); for (int i = 0; i < actions.length; i++) { Action action = actions[i]; commands.put(action.getValue(Action.NAME), action); } return (Action) commands.get(key); } } ---------------------------------------------------------------------- Comment By: dmusicant (dmusicant) Date: 2008-10-27 21:06 Message: Two things: 1. It does work for me on Windows XP, but not on OpenSUSE 2. Double clicking to highlight a word also does not allow copying on OpenSUSE ---------------------------------------------------------------------- Comment By: Robert Schwenn (rschwenn) Date: 2008-10-27 13:05 Message: For me it works perfectly: jEdit 4.3pre15 SUN JRE 1.6.0_10 Windows XP SP3 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=2201518&group_id=588 |