E535 Harmonize property selection with edit-part selection by ptziegler · Pull Request #1003 · eclipse-windowbuilder/windowbuilder · GitHub
[go: up one dir, main page]

Skip to content

Harmonize property selection with edit-part selection#1003

Merged
ptziegler merged 1 commit intoeclipse-windowbuilder:masterfrom
ptziegler:unify-property-selection
Mar 17, 2025
Merged

Harmonize property selection with edit-part selection#1003
ptziegler merged 1 commit intoeclipse-windowbuilder:masterfrom
ptziegler:unify-property-selection

Conversation

@ptziegler
Copy link
Contributor

When a property is selected, this now also selects the corresponding edit part. Doing so allows us to check whether an edit part is selected by simply checking the getSelected() flag, rather than having to compare against the local variable of the property table.

To do so, the setActivePropertyInfo(PropertyInfo) now delegates its call to select(EditPart), which not only updates the local variable but also notifies the underlying viewer about this change. This can then be utilized in the isActiveProperty() method of the PropertyFigure.

@ptziegler ptziegler added this to the 1.20.0 milestone Mar 15, 2025
@ptziegler ptziegler force-pushed the unify-property-selection branch 2 times, most recently from c002b57 to 52bbf9b Compare March 17, 2025 17:31
When a property is selected, this now also selects the corresponding
edit part. Doing so allows us to check whether an edit part is selected
by simply checking the getSelected() flag, rather than having to compare
against the local variable of the property table.

To do so, the setActivePropertyInfo(PropertyInfo) now delegates its call
to select(EditPart), which not only updates the local variable but also
notifies the underlying viewer about this change. This can then be
utilized in the isActiveProperty() method of the PropertyFigure.
@ptziegler ptziegler force-pushed the unify-property-selection branch from 52bbf9b to 1507274 Compare March 17, 2025 17:36
@ptziegler ptziegler merged commit 95f90a6 into eclipse-windowbuilder:master Mar 17, 2025
6 checks passed
@ptziegler ptziegler deleted the unify-property-selection branch March 17, 2025 18:43
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

0