Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYupanqui Munoz2018-12-17 09:15:06 -0500
committerYupanqui Munoz2018-12-18 05:30:03 -0500
commitad766b6fb1604aca64a2b3ca0153a73825d05384 (patch)
tree996777cfbc9ce082af42b4f080e9cafaf0bba278 /plugins/infra/core
parent15340f43c95c3e7deed761447bd8e0002804707a (diff)
downloadorg.eclipse.papyrus-ad766b6fb1604aca64a2b3ca0153a73825d05384.tar.gz
org.eclipse.papyrus-ad766b6fb1604aca64a2b3ca0153a73825d05384.tar.xz
org.eclipse.papyrus-ad766b6fb1604aca64a2b3ca0153a73825d05384.zip
Bug 542855 - [SasheEditor] Implement toString() to
NotificationContentEvent Change-Id: Ideb90ae01dc6d4e0f3d99c0b854586643620ca99 Signed-off-by: Yupanqui Munoz <Yupanqui.MUNOZJULHO@cea.fr>
Diffstat (limited to 'plugins/infra/core')
-rwxr-xr-xplugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/contentprovider/NotificationContentEvent.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/contentprovider/NotificationContentEvent.java b/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/contentprovider/NotificationContentEvent.java
index dd2bfd02429..0eca7a5ab6a 100755
--- a/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/contentprovider/NotificationContentEvent.java
+++ b/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/contentprovider/NotificationContentEvent.java
@@ -347,4 +347,21 @@ public class NotificationContentEvent extends ContentEvent implements Notificati
return notification.getNewStringValue();
}
+ /**
+ * @see java.lang.Object#toString()
+ *
+ * @return
+ */
+ @Override
+ public String toString() {
+ final StringBuilder builder = new StringBuilder();
+ builder.append(getClass().getSimpleName());
+ builder.append(" wraps the EMF Notification: "); //$NON-NLS-1$
+ if (null != notification) {
+ builder.append(notification.toString());
+ } else {
+ builder.append("null"); //$NON-NLS-1$
+ }
+ return builder.toString();
+ }
}

Back to the top