Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide an swt-headless fragment #1750

Open
laeubi opened this issue Jan 22, 2025 · 0 comments
Open

Provide an swt-headless fragment #1750

laeubi opened this issue Jan 22, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@laeubi
Copy link
Contributor

laeubi commented Jan 22, 2025

There are several cases where one want to run some code in an headless way that might has references to UI code.

AWT offers for this purpose the java.awt.headless system property.

Something similar would be good for SWT:

  1. Have a static method Display.isHeadless() returning false for all current implementations
  2. Have a swt-headless fragment, where all public API is simply a no-op as far as possible or throwing an SWT exception and isHeadless return true.
@laeubi laeubi added the enhancement New feature or request label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant