X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.ui%2Fsrc%2Forg%2Fsimantics%2Fui%2FWorkbenchWindowSessionContextProviderSource.java;h=8274facefd89adbdd76168654bf0902c5a2047f8;hp=76085143243c793fb9737a595ba7ee73a094d9ce;hb=4aba159170fc72d39c2f930ea224aa71f4cdc2e7;hpb=59cab457bcc89618e8557235fd65eaecbe583592 diff --git a/bundles/org.simantics.ui/src/org/simantics/ui/WorkbenchWindowSessionContextProviderSource.java b/bundles/org.simantics.ui/src/org/simantics/ui/WorkbenchWindowSessionContextProviderSource.java index 760851432..8274facef 100644 --- a/bundles/org.simantics.ui/src/org/simantics/ui/WorkbenchWindowSessionContextProviderSource.java +++ b/bundles/org.simantics.ui/src/org/simantics/ui/WorkbenchWindowSessionContextProviderSource.java @@ -161,7 +161,7 @@ public class WorkbenchWindowSessionContextProviderSource implements ISessionCont synchronized (providers) { if (providers.put(context, p) != null) { // This is a bug, should never happen. - throw new Error("Bug encountered, contact application support with stack trace."); + throw new Error("Unexpected bug, this should never happen!"); } allProviders = providers.values().toArray(ZERO); } @@ -172,7 +172,7 @@ public class WorkbenchWindowSessionContextProviderSource implements ISessionCont ISessionContextProvider provider = providers.remove(context); if (provider == null) { // This is a bug, should never happen. - throw new Error("Bug encountered, contact application support with stack trace."); + throw new Error("Unexpected bug, this should never happen!"); } allProviders = providers.values().toArray(ZERO);