Menu

App class for Mac users

Eder Jorge
2015-12-22
2015-12-28
  • Eder Jorge

    Eder Jorge - 2015-12-22

    Hi, I made a mac specific class to run SQLeo closely to a Mac native
    application. It works only in mac, for mac lovers :D

    It is not the best looking code, but it can be improved if you want.

    Eder

     
  • PAscal

    PAscal - 2015-12-22

    Thanks for this proposal.

    We propose to start SQLeo with alternates Look and Feels as described in the sqleo-star-xxx.txt files provided in the zip file.

    Would a command line like
    java -Dcom.sqleo.laf.class=com.apple.laf.AquaLookAndFeel -jar SQLeoVQB.jar
    do the same as your code ?

    We had some bugs with the mac laf
    could you have a look here
    https://sourceforge.net/p/sqleo/discussion/general/thread/b29fdd58/?limit=25#7482

    If you still think it can be included, could you tell us were to place it in source tree, how tho launch it and give us a screen shot ?

    Thanks again
    Regrads
    PAscal

     

    Last edit: PAscal 2015-12-22
  • Eder Jorge

    Eder Jorge - 2015-12-22

    Yes, it is little bit more than that. If you use it like you showed, only the look and feel changes. This is specifically to mac because it connects how application works on mac with SQLeo using some native MAC JVM classes.

    The package com.sqleo.environment;, and some additional features must be coded for end users, but devs can run the app calling the class.

    Features added are:
    Add the application menu to mac main menu
    Add SQLeo to the app name
    Integrates mac menu application about to SQLeo about
    Integrates mac menu application preferentes to SQLeo preferences
    Integrates mac menu application quit (and CMD+Q) to SQLeo shutdown procedure
    Add SQLeo menu to dock
    * Add SQLeo badge to CMD+TAB icon list

    Additional info: I had to put in a separate class to really works. The class load and set mac menus and then call Application.main. The environment test was Java 7 + OSX 10.9.5.

    Some screen attached.

    I'll take a look at the but you mentioned.

    Cheers
    Eder

     
  • PAscal

    PAscal - 2015-12-22

    Thanks, it is very interesting.
    I'm wondering about the com.apple.eawt jar package that you used and that is MAC specific ...

    As you understood we don't have any MAC computer available yet in the project (we are windows only) ...
    and were not able to fix bugs related to AquaLookandFeel (so we removed it).

    That also means that we are not able to build a MAC specific SQLeo package or to support it ;o(
    Will you ?

     
  • Eder Jorge

    Eder Jorge - 2015-12-22

    Oh sure, I can send the .class or build and app for mac, or even generate in some other way. I've found an article in oracle that explains something about it and found it very interesting (http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/packagingAppsForMac.html).

    Just say how you do/build the releases or how you want to procede. You can add me on skype if you want to add some specific or not public info. my skype id is eder.luis.jorge

    Eder

     
  • PAscal

    PAscal - 2015-12-22

    Never thought about deploying SQLeo with Apple store ........... (even for Christmas ;o)
    To build the release we just use the build.xml file with ant jar

    PAscal

     

    Last edit: PAscal 2015-12-22
    • PAscal

      PAscal - 2015-12-23

      Send us the .class to see

       
  • Anonymous

    Anonymous - 2015-12-23

    Here are the .class files.

    I read some of the post and there are some complaints about the mac version and how it behaves. Can I open some issues and then assign them to me? After that we can add another script to run it properly in Mac.
    You don't need to publish it in Apple Store, but make it available here is ok too. If you want to publish there, there are some requirements and costs and can be done later.

    I have checked all the files in SVN and it's all explained there. My bad, again...

    Eder

     
  • Eder Jorge

    Eder Jorge - 2015-12-28

    Hi, the jar package worked, but not the txt file, because of CRLF windows terminators. I regenerated the file and replaced pause command from windows. Please use this one.

    Eder

     

Anonymous
Anonymous

Add attachments
Cancel