Menu

#624 Patch for MacOSX integration without plugin

open
nobody
None
5
2020-11-30
2019-08-19
Heklaz
No

Patch for MacOSX

Against latest trunk

Removes the need for MacOSX plugin - removed from build.xml and ivy.xml
Removes some keyboard binding errors (on Macosx anyway - can't check on Windows)
Integrates to MacOSX using java.awt.Desktop in org/gjt/sp/jedit/View.java

Tested on MacOSX and Linux.

1 Attachments

Discussion

  • Heklaz

    Heklaz - 2019-08-21

    Requires at least Java 9.

     
  • Makarius

    Makarius - 2020-06-09

    This is a more concise patch. It is also closer to the plugin MacOS 1.5 (by makarius).

    The plugin has Desktop.setOpenFileHandler but it seems to be unnecessary: drag&drop of files onto the view works without it.

     

    Last edit: Makarius 2020-06-09
  • Matthieu Casanova

    I quickly checked, it seems good to me but I can't test, so if someone can test it, it would be cool, otherwise I will apply it.
    Here is another patch, exactly the same with a few fixes in coding style

     
    • Makarius

      Makarius - 2020-06-10

      This is now in jedit-trunk r25349.

      This is vacuous for Linux and Windows: conditions like desktop.isSupported(Action.APP_QUIT_HANDLER) are false.

      It works fine on macOS Catalina 10.15.5, with or without the MacOS plugin (the MacOSX plugin is for old Java 8). Can someone who understands the ant setup remove all references to the MacOSX plugin from it?

       
  • Makarius

    Makarius - 2020-06-09

    Looks good. If you apply it, I will test it.

     
  • Dale Anson

    Dale Anson - 2020-06-09

    Here's a jar with jEdit from head with the patch attached:

    https://drive.google.com/open?id=1ZZNNqLaN27ZB8RxKEMe-SbEdTMB4UEPD

     
    • Makarius

      Makarius - 2020-06-10

      I have now learned to use "ant dist", so I won't need any further build snapshots.

       
    • Heklaz

      Heklaz - 2020-06-22

      Seems to work fine on Macos and Windows 10

       
  • Peter Lynch

    Peter Lynch - 2020-11-30

    @makarius

    Can someone who understands the ant setup remove all references to the MacOSX plugin from it?

    Attached is a patch against SVN revision 25386 that removes references to the MacOSX.jar from the build/ivy files.

     

    Last edit: Peter Lynch 2020-11-30
  • Makarius

    Makarius - 2020-11-30

    I don't understand the ant setup.

    Maybe it is better to make a separate tracker item to get more attention for the patch.

     
  • Peter Lynch

    Peter Lynch - 2020-11-30

    @makarius ok - I created https://sourceforge.net/p/jedit/patches/627/ for my patch.

    Meanwhile, what is the reason this patch issue is still open?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.