eclipse-windowbuilder / eclipse-windowbuilder/windowbuilder

Synchronize the SwtResourceManager with the JFace ResourceManager

Đang mở
#486 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
97
Fork
34
Merge trung bình
21 giờ 52 phút
Pull request đã merge (30 ngày)
25

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.