Skip to content

Conversation

ptziegler
Copy link
Contributor

No description provided.

@ptziegler
Copy link
Contributor Author

We currently ignore quite a lot of deprecation warnings. Like a lot of the BigDecimal methods in PrecisionGeometry.

@ptziegler
Copy link
Contributor Author

Given that those are plenty of new warnings, I'll split this up into smaller PRs, each focusing on a single component.

@ptziegler ptziegler force-pushed the _deprecation-warnings branch from 5a356cc to fcb3ad5 Compare September 6, 2025 17:29
ptziegler added a commit to ptziegler/gef-classic that referenced this pull request Sep 6, 2025
Those field has been marked as deprecated since forever and is only
referenced within the same package and can therefore be made
package-private (or private) in a future release.

The "removal" warning needs to be suppressed, wherever this field is
referenced.

Contributes to eclipse-gef#778
ptziegler added a commit to ptziegler/gef-classic that referenced this pull request Sep 6, 2025
The setScale(...) method accepting the mode as integer has been
deprecated with Java 9. Given that Draw2D requires at least Java 17, we
can simply use the drop-in replacement via the RoundingMode enum.

Contributes to eclipse-gef#778
ptziegler added a commit to ptziegler/gef-classic that referenced this pull request Sep 6, 2025
The setScale(...) method accepting the mode as integer has been
deprecated with Java 9. Given that Draw2D requires at least Java 17, we
can simply use the drop-in replacement via the RoundingMode enum.

Contributes to eclipse-gef#778
ptziegler added a commit to ptziegler/gef-classic that referenced this pull request Sep 6, 2025
The setScale(...) method accepting the mode as integer has been
deprecated with Java 9. Given that Draw2D requires at least Java 17, we
can simply use the drop-in replacement via the RoundingMode enum.

Contributes to eclipse-gef#778
ptziegler added a commit to ptziegler/gef-classic that referenced this pull request Sep 6, 2025
The setScale(...) method accepting the mode as integer has been
deprecated with Java 9. Given that Draw2D requires at least Java 17, we
can simply use the drop-in replacement via the RoundingMode enum.

Contributes to eclipse-gef#778
azoitl pushed a commit that referenced this pull request Sep 6, 2025
Those field has been marked as deprecated since forever and is only
referenced within the same package and can therefore be made
package-private (or private) in a future release.

The "removal" warning needs to be suppressed, wherever this field is
referenced.

Contributes to #778
@ptziegler ptziegler force-pushed the _deprecation-warnings branch from fcb3ad5 to 224ade1 Compare September 6, 2025 19:57
azoitl pushed a commit that referenced this pull request Sep 7, 2025
The setScale(...) method accepting the mode as integer has been
deprecated with Java 9. Given that Draw2D requires at least Java 17, we
can simply use the drop-in replacement via the RoundingMode enum.

Contributes to #778
@ptziegler ptziegler force-pushed the _deprecation-warnings branch from 224ade1 to 66b694a Compare September 7, 2025 15:20
ptziegler added a commit to ptziegler/gef-classic that referenced this pull request Sep 8, 2025
This class is package-private, but not used anywhere. Main motivation
for this removal is the dependency to the deprecated ViewForm color
constants.

Contributes to eclipse-gef#778
ptziegler added a commit to ptziegler/gef-classic that referenced this pull request Sep 8, 2025
azoitl pushed a commit that referenced this pull request Sep 8, 2025
This class is package-private, but not used anywhere. Main motivation
for this removal is the dependency to the deprecated ViewForm color
constants.

Contributes to #778
azoitl pushed a commit that referenced this pull request Sep 8, 2025
@ptziegler ptziegler force-pushed the _deprecation-warnings branch from 66b694a to 1419fba Compare September 9, 2025 04:05
ptziegler added a commit to ptziegler/gef-classic that referenced this pull request Sep 21, 2025
If a "FocusIn" event is fired for the RulerComposite, the contents of
the RulerViewer should be focused, unless any other part has already
requested focus.

Rather than checking whether the deprecated field is checked, we can
check whether the FOCUS flag has been set for the focused edit part.
This flag is only set when setFocus(...) is called on the EditPartViewer
and should therefore be set exactly when the local variable is set.

Conversely, the focus should be cleared by an "FocusOut" event, unless
any other part has taken the focus.

Contributes to eclipse-gef#778
azoitl pushed a commit that referenced this pull request Sep 22, 2025
If a "FocusIn" event is fired for the RulerComposite, the contents of
the RulerViewer should be focused, unless any other part has already
requested focus.

Rather than checking whether the deprecated field is checked, we can
check whether the FOCUS flag has been set for the focused edit part.
This flag is only set when setFocus(...) is called on the EditPartViewer
and should therefore be set exactly when the local variable is set.

Conversely, the focus should be cleared by an "FocusOut" event, unless
any other part has taken the focus.

Contributes to #778
@ptziegler ptziegler force-pushed the _deprecation-warnings branch from 1419fba to 36cb52e Compare September 23, 2025 04:36
ptziegler added a commit to ptziegler/gef-classic that referenced this pull request Oct 3, 2025
The example editors override the deprecated commandStackChanged() method
to manage the "dirty" flag of the editor. For backwards-compatibility,
this method is call by the non-deprecated stackChanged method.

Contributes to eclipse-gef#778
ptziegler added a commit to ptziegler/gef-classic that referenced this pull request Oct 3, 2025
The example editors override the deprecated commandStackChanged() method
to manage the "dirty" flag of the editor. For backwards-compatibility,
this method is call by the non-deprecated stackChanged method.

Contributes to eclipse-gef#778
azoitl pushed a commit that referenced this pull request Oct 4, 2025
The example editors override the deprecated commandStackChanged() method
to manage the "dirty" flag of the editor. For backwards-compatibility,
this method is call by the non-deprecated stackChanged method.

Contributes to #778
@ptziegler ptziegler force-pushed the _deprecation-warnings branch from 36cb52e to 5fd3c76 Compare October 4, 2025 13:17
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