Skip to content

Synchronize the SwtResourceManager with the JFace ResourceManager #486

Description

@ptziegler

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions