From aea92a4dd193676ec0da592a592d8185b4a688df Mon Sep 17 00:00:00 2001 From: Patrick Ziegler Date: Fri, 13 Feb 2026 21:15:36 +0100 Subject: [PATCH] Add `toString()` implementations for Property and PropertyInfo --- .../eclipse/wb/internal/core/model/property/Property.java | 7 ++++++- .../internal/core/model/property/table/PropertyTable.java | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/org.eclipse.wb.core/src/org/eclipse/wb/internal/core/model/property/Property.java b/org.eclipse.wb.core/src/org/eclipse/wb/internal/core/model/property/Property.java index f939b9cca..2f76c4695 100644 --- a/org.eclipse.wb.core/src/org/eclipse/wb/internal/core/model/property/Property.java +++ b/org.eclipse.wb.core/src/org/eclipse/wb/internal/core/model/property/Property.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2024 Google, Inc. and others. + * Copyright (c) 2011, 2026 Google, Inc. and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at @@ -180,4 +180,9 @@ public final void removeArbitraryValue(Object key) { m_arbitraryMap.remove(key); } } + + @Override + public String toString() { + return "[Property] %s".formatted(getTitle()); + } } diff --git a/org.eclipse.wb.core/src/org/eclipse/wb/internal/core/model/property/table/PropertyTable.java b/org.eclipse.wb.core/src/org/eclipse/wb/internal/core/model/property/table/PropertyTable.java index 80a40168c..43701a4e2 100644 --- a/org.eclipse.wb.core/src/org/eclipse/wb/internal/core/model/property/table/PropertyTable.java +++ b/org.eclipse.wb.core/src/org/eclipse/wb/internal/core/model/property/table/PropertyTable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2025 Google, Inc. and others. + * Copyright (c) 2011, 2026 Google, Inc. and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at @@ -915,5 +915,10 @@ public boolean expandFromHistory() throws Exception { } return false; } + + @Override + public String toString() { + return "[PropertyInfo] %s".formatted(m_property); + } } } \ No newline at end of file