From: jsimomaa Date: Wed, 28 Dec 2016 14:06:29 +0000 (+0200) Subject: Add EditorAdapterDescriptorImpl.toString implementation for debug X-Git-Tag: v1.26.0~5 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F34%2F234%2F2;p=simantics%2Fplatform.git Add EditorAdapterDescriptorImpl.toString implementation for debug refs #6898 Change-Id: I6754db48ea760777ffdf86b78e384e26bcb9ba66 --- diff --git a/bundles/org.simantics.ui/src/org/simantics/ui/workbench/editor/EditorAdapterDescriptorImpl.java b/bundles/org.simantics.ui/src/org/simantics/ui/workbench/editor/EditorAdapterDescriptorImpl.java index 411f96e20..b32478820 100644 --- a/bundles/org.simantics.ui/src/org/simantics/ui/workbench/editor/EditorAdapterDescriptorImpl.java +++ b/bundles/org.simantics.ui/src/org/simantics/ui/workbench/editor/EditorAdapterDescriptorImpl.java @@ -73,5 +73,12 @@ public class EditorAdapterDescriptorImpl implements EditorAdapterDescriptor { return true; return false; } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(EditorAdapterDescriptorImpl.class.getSimpleName()).append(" id=").append(id).append(" gId=").append(groupId); + return sb.toString(); + } }