Discussion:
[ jEdit-devel ] JEdit Drag and drop bug in Gnome
xlinuks
2007-01-14 22:24:34 UTC
Permalink
Hi,
I'm working in Linux in Gnome (v2.16.0). JEdit imports (.java) files in
Gnome only from the Desktop. But when I'm using Nautilus (the default Gnome
system browser - something like explorer.exe in windows) jEdit refuses to
import. I thought you might want to change the
TextAreaTransferHandler.javafile so that it allows importing from
Nautilus as well since it's the main
source of importing files in Gnome. For my purposes I have a class that
imports correctly single files in windows and linux (including from
Nautilus), I thought you might consider using it as kinda reference:
www.geocities.com/xlinuks/FileTransferHandler.java.zip

I would try to fix this bug myself (not to spend your time) but I don't have
MacOS installed so I can't check if the new Drag'n'Drop would work fine on
all platforms.
Nicholas O'Leary
2007-01-15 00:25:13 UTC
Permalink
Hi,

I can drag files from Nautilus into jEdit without any problems.

Can you say what versions of jEdit and java you are running?

If you are running 4.3pre8 (or possible earlier, not sure when this
was put in), could you check the Activiy Log
(Utilities->Troubleshooting->Activity Log) for something like the
following when you drop into the textarea:

[debug] TextAreaTransferHandler: canImport() returning true
[debug] TextAreaTransferHandler: => URIList
"file:///home/nol/Desktop/home/a.list
[debug] TextAreaTransferHandler: "

Regards,
N
Post by xlinuks
Hi,
I'm working in Linux in Gnome (v2.16.0). JEdit imports (.java) files in
Gnome only from the Desktop. But when I'm using Nautilus (the default Gnome
system browser - something like explorer.exe in windows) jEdit refuses to
import. I thought you might want to change the TextAreaTransferHandler.java
file so that it allows importing from Nautilus as well since it's the main
source of importing files in Gnome. For my purposes I have a class that
imports correctly single files in windows and linux (including from
www.geocities.com/xlinuks/FileTransferHandler.java.zip
I would try to fix this bug myself (not to spend your time) but I don't have
MacOS installed so I can't check if the new Drag'n'Drop would work fine on
all platforms.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
-----------------------------------------------
jEdit Developers' List
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Nicholas O'Leary
2007-01-15 16:51:22 UTC
Permalink
Could you provide the actual output from the activity log. I am not
too familiar with the D'n'D code in this area and without this output
it will be hard to diagnose any further as it works fine for me.

Cheers,
N
hi,
I have 4.3pre8, and I tested it with both Java versions 1.5 and 1.6.
When I drag from the desktop the Activity log returns a lot of "returning
true" so here everything's fine.
When I do the same from Nautilus it says "returning false".
If I can help is some other way let me know
Loading...