From 0490b915c4ee443f2db660bf473b2e19d9a68d36 Mon Sep 17 00:00:00 2001 From: Felix Schmid <50250674+Felix-Schmid@users.noreply.github.com> Date: Fri, 3 Jul 2026 09:48:50 +0200 Subject: [PATCH] Add N&N for LTK copy refactoring --- news/4.41/platform_isv.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/news/4.41/platform_isv.md b/news/4.41/platform_isv.md index 7afea821..7438cda2 100644 --- a/news/4.41/platform_isv.md +++ b/news/4.41/platform_isv.md @@ -16,6 +16,22 @@ A special thanks to everyone who [contributed to Eclipse-Platform](acknowledgeme `ImageDescriptor` now provides `asDisabledDescriptor()`, which returns a lazily created, shared `ImageDescriptor` for the disabled version of the image. This allows you to use a single descriptor with a `ResourceManager` to share both the original and disabled images, instead of managing two independent descriptors. +## Language Toolkit (LTK) + +### Copy Refactoring Support +
+Contributors + +- [Felix Schmid](https://github.com/Felix-Schmid) +
+ +LTK already supported refactoring operations for moving, renaming, and deleting resources, but part of the infrastructure for copying was missing. +Copy participants contributed via the `org.eclipse.ltk.core.refactoring.copyParticipants` extension point are now invoked when resources are copied. + +These copy participants can perform refactorings, such as adjusting package names for specific languages. +For example, the Eclipse 4diac IDE includes a participant that updates package names to match the new folder structure when resources are copied. +It can be found [here](https://github.com/eclipse-4diac/4diac-ide/blob/develop/plugins/org.eclipse.fordiac.ide.typemanagement/src/org/eclipse/fordiac/ide/typemanagement/refactoring/copy/CopyTypeParticipant.java). +