This commit is contained in:
Bane Stojkovic
2026-01-10 19:40:30 +01:00
parent a7bb1b02bf
commit 06e836b1ed
2 changed files with 13 additions and 21 deletions
@@ -2198,26 +2198,10 @@ public class Presenter implements IPlugInPort {
*/
private void ungroupComponents(Collection<IDIYComponent<?>> components) {
Set<UUID> componentIds = components.stream().map(IDIYComponent::getId).collect(Collectors.toSet());
Iterator<ComponentGroup> groupIterator = currentProject.getGroupsEx().iterator();
while (groupIterator.hasNext()) {
ComponentGroup group = groupIterator.next();
// Remove the group if it contains any of the specified components
if (group.getComponentIds() != null &&
group.getComponentIds().stream().anyMatch(id -> id != null && componentIds.contains(id))) {
groupIterator.remove();
}
}
// Clean up any groups with null or empty component IDs
groupIterator = currentProject.getGroupsEx().iterator();
while (groupIterator.hasNext()) {
ComponentGroup group = groupIterator.next();
if (group.getComponentIds() == null ||
group.getComponentIds().isEmpty() ||
group.getComponentIds().stream().anyMatch(id -> id == null)) {
groupIterator.remove();
}
}
// Remove the group if it contains any of the specified components
currentProject.getGroupsEx().removeIf(
group -> group.getComponentIds() != null && group.getComponentIds().stream()
.anyMatch(id -> id != null && componentIds.contains(id)));
}
/**
@@ -490,9 +490,17 @@
<minor>9</minor>
<build>0</build>
</versionNumber>
<releaseDate>2025-12-30 00:00:00.000 CET</releaseDate>
<releaseDate>2026-01-10 00:00:00.000 CET</releaseDate>
<name></name>
<changes>
<org.diylc.appframework.update.Change>
<changeType>NEW_FEATURE</changeType>
<description>Added ability to name groups of components</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>NEW_FEATURE</changeType>
<description>Show groups of components as single items in the Project Explorer list</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>NEW_FEATURE</changeType>
<description>Added balloon tooltip next to cursor showing component width, height and length (where available) while resizing; can be disabled from Config menu</description>