eclipse-windowbuilder / eclipse-windowbuilder/windowbuilder

Synchronize the SwtResourceManager with the JFace ResourceManager

Offen
#486 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
97
Forks
34
Ø Merge
21 Std. 52 Min.
Gemergte PRs (30 T.)
25

Beschreibung

There is quite a lot of overlap between both classes. We should try to extend the JFace class in order to reduce the amount of duplicate code.

Following methods should be compatible:
`getColor(int)` -> `Display.getSystemColor(int)`
`getColor(int, int, int)`, `getColor(RGB)` -> `createColor(ColorDescriptor)`
`getImage(int)` -> `Display.getSystemImage(int)`
`getImage(String)`, `getImage(Class, String)`-> `createImage(ImageDescriptor)`
`getFont(...)` -> `createFont(FontDescriptor)`

The difficult method is going to be the `decorateImage()` method, which we use to quickly construct composite images. JFace doesn't provide a function for such a specific use-case.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.