Skip to content

Conversation

@WillPeltz
Copy link

This PR allows us to fix issues with the CSS Spy, detailed in Issue #611 Completed with @neilcabanilla.

Only set style bits will be shown when inspecting a widget whose class has a getStyles method defined in Eclipse SWT.

Changes
Modified section of CssSpyPart's populate method to use the getStyles method when grabbing a list of styles for a widget class that has it defined. No other files are changed.

Motivation
This implementation was chosen because it isn't overly complex, while meeting all the requirements we need. It doesn't require much upkeep, moving most of the code to Eclipse SWT allows us to potentially help other projects, and we don't have to use a complex parser.

As of writing this PR, we have completed the getStyles implementations for the Button and Text classes. We plan on getting the rest (and anyone else can work on this too), but this will take a lot of time. This implementation will allow us to correctly display any currently implemented widget's styles, without having to update PDE all the time.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant