Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Synchronize the SwtResourceManager with the JFace ResourceManager

未關閉
#486 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
重構
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
java
領域
desktop

研究方向

先比較 SwtResourceManager 與 JFace ResourceManager,並對照其 JFace 對應方法檢視列出的 getColor、getImage 和 getFont 方法。特別注意 decorateImage(),它沒有直接對應的 JFace 方法。在維持列出方法的相容性並保留複合影像使用情境的前提下減少重複程式碼,即表示完成。

由索引模型根據 Issue 內容生成。

描述

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.

主要語言
Java
星號
97
分支
34
平均合併
1 天 14 小時
30 天內合併 PR
27

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

eclipse-windowbuilder/windowbuilder 的其他 Issue

查看 eclipse-windowbuilder/windowbuilder 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。