OrangeExtensions icon indicating copy to clipboard operation
OrangeExtensions copied to clipboard

Missing apple.eawt.QuitStrategy

Open kjkrum opened this issue 11 years ago • 4 comments

According to the Javadoc (now apparently only available via Google cache... thanks, Apple!) this enum has existed since Java for OS X v10.6 Update 3 and Java for OS X v10.5 Update 8.

kjkrum avatar May 04 '13 21:05 kjkrum

Thanks for the notice. I'll add it in the next few days. Would you mind attaching a copy of the Google cache? It may have signature or annotation info I need to get it right.

ymasory avatar May 07 '13 21:05 ymasory

Hmm... not sure how to attach a HTML file. But com.apple.eawt.QuitStrategy is an enum with two values:

SYSTEM_EXIT_0 Shuts down the application by calling System.exit(0). This is the default strategy.

CLOSE_ALL_WINDOWS Shuts down the application by closing each window from back-to-front.

It only has one use:

void Application.setQuitStrategy(QuitStrategy strategy) Sets the default strategy used to quit this application.

kjkrum avatar May 08 '13 04:05 kjkrum

Would you mind submitting a pull request? I'm worried about writing the stub blind without the JavaDocs.

ymasory avatar May 11 '13 19:05 ymasory

I emailed you the javadocs I got from the Google cache.

kjkrum avatar May 12 '13 00:05 kjkrum