New Mac OS X Plugin for jEdit

After switching to Java 6 I encountered a couple of problems using the Mac OS X plugin for jEdit. After waiting a couple of months to get annoyed with the missing mac integration I finally got my act together and re-coded the plugin to support the API changes.

I've managed to get most of the functionality you would expect from a regular mac program working and have now decided to release an alpha version for any testers that might want to get their hands dirty

Here's the changelog and features:

  • Initial release
  • Support for drag and drop onto the dock icon
  • Support for Open With for files that are associated with jEdit
  • Application menu integration
    • "Preferences" will open Global Preferences
    • "About jEdit" will open the Help -> About jEdit… dialog
  • CMD-click in titlebar now displays the current buffer path in a drop down. Clicking on a folder will reveal that folder in the finder.
  • The red close button now indicates the entire view's modification status. This way it will be consistent with the "save modified buffers?" dialog.

Kris (the original author of the mac plugin) is not completely without credit on this one since I used his plugin as a reference of what needed to be done.

Download plugin

Please give your comments

20 thoughts on “New Mac OS X Plugin for jEdit”

  1. The GOOD: Nice work. Very timely too.

    The BAD: IWhen I start up jedit I get the following error:

    at macosx.MacOSXPlugin.handleMessage(Unknown Source)
    at org.gjt.sp.jedit.EditBus.send(
    at org.gjt.sp.jedit.jEdit.commitTemporary(
    at (...)

  2. I belive it's most likely that it's caused by your LNF. It's a bug that I need to fix soon – if you switch to Aqua Look and Feel it should go away. Try it out 🙂


  3. Hello,

    I just found your New Mac OS X Plugin and installed it (it works: About jEdit open the complete dialog, that shows me that I'm really in Java 6, after all these years of waiting), but there is still a major issue: no keyboard shortcut will work (neither with CMD nor CTRL).

    I have not found a work around to this. Are you aware of it? Maybe it is because of the new Java update that Apple released today (Sept. 25, 2008).

    Hints are welcome. And thanks for the work!

  4. Hi,
    thanks for the effort !

    I tried your plugin and noticed some funny behaviour:

    1. run
    2. edit Untitled-1
    3. hit Cmd-Q
    4. the usual "Unsaved buffers – confirm" dialog pops-up
    5. hit "escape"
    6. jEdit exits and you lose your data.

    On the contrary, if you click on the red button to close the confirm dialog,
    or press the "Cancel" button,
    you go back as expected to jEdit.


    Version : OS X Tiger 10.4.11, apple java 5, jedit4.3pre15

  5. Many thanks Seph! It works great (running jEdit 4.3pre15 with Java 1.6.0_07 on Mac OS X 10.5.6). I can now change my prefs, favorites, etc. without losing them every time i quit.

    I posted a link to this post from a jEdit bug forum on this topic ( That page happens to be the first hit on the Google search "jedit MacOS Plugin".

  6. Thanks much for updating this plugin! The previous plugin version was giving an error on my system and this is a huge improvement.

  7. After updating Java yesterday drag and drop onto the dock icon doesn't work anymore. Anyone have a workaround for this?

    java -version
    java version "1.5.0_19"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-304)
    Java HotSpot(TM) Client VM (build 1.5.0_19-137, mixed mode, sharing)

  8. JR, If you are using Leopard, please try upgrading to 1.6.0 which is also 64 bit. This will fix a couple of things and make things run a bit smoother.


  9. I switched to Java 1.6 64 bit using Java still no luck.

    java -version
    java version "1.6.0_13"
    Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211)
    Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-83, mixed mode)
    strongbow:~ jr$

  10. I just upgraded my Java as well, but without issues. Are you able to drop the icon onto the jedit (does it gray out and display 'jEdit'?) or does it not support dropp it at all (no visual effect)?

  11. The icon changes to a darker shade and looks like it accepts drag and drop but jEdit does not open the dropped file. jEdit open an untitled document.

  12. I've tried a few thing before posting here like removing jars…

    Are these the jars you have in you jars folder?
    -rw-r–r– 1 jr admin 2689 Nov 16 2008 LatestVersion.jar
    -rw-r–r–@ 1 jr admin 9158 Jun 17 10:40 MacOSX.jar
    -rw-r–r– 1 jr admin 12695 Nov 16 2008 QuickNotepad.jar

  13. Also running jEdit from the command line doesn't open the specified file.

    open -a x.txt

    jEdit starts and opens Untitled-1 not x.txt.

  14. Yes, I have issues opening buffers from command-line as well. I have the same plugins you have plus more. When I launch jEdit and drag foo.txt to jEdit it opens it. I've tested this on 2 machines.

    I will investigate the command line open-feature when I have some time, but it may be a general jedit issue. Remember that the project viewer might be an issue if it tries to restore your buffers.


  15. I dropped a file on the jEdit icon on the dock and the following messages were displayed in the Console app.

    Jun 17 18:40:28 strongbow [0x0-0x27027].org.gjt.sp.jedit[252]: SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x100166a10, p = 0x100166a14, pEnd = 0x100166a18)
    Jun 17 18:40:28 strongbow [0x0-0x27027].org.gjt.sp.jedit[252]: SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x10012c500, p = 0x10012c504, pEnd = 0x10012c508)

  16. The posts I found seem to indicate this (SystemFlippers) is no big deal. Just routines for converting big endian info (PPC and most not Intel processors) to little endian (x86 processors).

  17. When I execute the command below from Terminal:

    /Applications/ x.txt

    jEdit launches and opens the x.txt file.

    Drag and drop to the jEdit icon on the dock does not work. Opening jEdit then dropping a file from Finder into the edit window works. Entering open -a file.ext does not work. Before I upgraded to OS X 10.5.7 and the latest Java updated drag and drop to the dock icon worked and open -a file worked.

  18. for me dragging&dropping etc all works with jEdit 4.3pre16 and older. From pre17 onwards it's broken. It's also broken in different ways in Java 5 (OSX10.4) and 6 (OSX10.6): Once jEdit is open, dragging onto the icon works in 10.6 but not in 10.4. Dragging onto the window works in 10.4 but not in 10.6. It's driving me nuts!

Comments are closed.