FYI.
I start to check the osx part.

On 18.11.15 17:01, Alexander Zvegintsev wrote:
Hi Alexander,

resending the same webrev under the new ID
https://bugs.openjdk.java.net/browse/JDK-8143227
http://cr.openjdk.java.net/~azvegint/jdk/9/8143227/00/

The approach is pretty the same as it was in Desktop before:
Check feature with isSupported() call.
http://cr.openjdk.java.net/~azvegint/jdk/9/8143227/Snip.java

For testing it on Ubuntu you should create a .desktop file e.g.:
~/.local/share/applications/SomeApp.desktop

[Desktop Entry]
Name=SomeApp
Path=/path/to/your/directory/with/Snip
Exec=/path/to/jdk9/java -Djava.desktop.appName=SomeApp.desktop -jar
Snip.jar
#or Exec=/path/to/jdk9/java -Djava.desktop.appName=SomeApp.desktop Snip
Terminal=false
Type=Application

After that you can run it from dash with specified name.

--
Thanks,
Alexander.

On 11/18/2015 02:52 PM, Alexander Scherbatiy wrote:
On 11/18/2015 10:12 AM, Alexander Zvegintsev wrote:
Hello

please review the fix
http://cr.openjdk.java.net/~azvegint/jdk/9/8048731/
for
https://bugs.openjdk.java.net/browse/JDK-8048731

This fix provides public support Mac OS X
features(com.apple.{eawt,eio}), adds support for various desktop
features such as progress indication, dock overlays, dock menus, etc.
This is done by extending java.awt.Desktop and adding
java.awt.Taskbar classes

   Could you provide some code snippets which illustrate how the
introduced API should be used?

  Thanks,
  Alexandr.

Linux support is limited by Unity, however this is not the only
limitation :) An app should be run via
AppName.desktop file [0] with specified system property
-Djava.desktop.appName=AppName.desktop

[0] https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles






--
Best regards, Sergey.

Reply via email to