eclipse-windowbuilder / eclipse-windowbuilder/windowbuilder

Synchronize the SwtResourceManager with the JFace ResourceManager

未关闭
#486 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
97
派生
34
平均合并
21 小时 38 分钟
30 天内合并 PR
29

描述

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.

贡献指南

打开贡献指南

调研方向

首先比较 SwtResourceManager 与 JFace ResourceManager,并将列出的 getColor、getImage 和 getFont 方法与其对应的 JFace 方法进行审查。特别注意 decorateImage(),它没有直接对应的 JFace 方法。在保持所列方法兼容性并保留复合图像用例的同时减少重复代码,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
desktop
Issue 类型
重构
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。