Skip to content

Commit

Permalink
Clarifies Eclipse consoles used by the engines (#17)
Browse files Browse the repository at this point in the history
* renamed eclipse console to match other engine naming
* ensure to use a single console

contributes to eclipse/gemoc-studio#172

Signed-off-by: Didier Vojtisek <didier.vojtisek@inria.fr>
  • Loading branch information
dvojtise committed Aug 6, 2019
1 parent 97ce168 commit 735023e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
Expand Up @@ -33,7 +33,9 @@ public static MessagingSystem getMessagingSystem() {
if (messagingSystem == null)
{
MessagingSystemManager msm = new MessagingSystemManager();
messagingSystem = msm.createBestPlatformMessagingSystem(PLUGIN_ID, "GEMOC extensions k3");
messagingSystem = msm.createBestPlatformMessagingSystem(
org.eclipse.gemoc.executionframework.engine.Activator.PLUGIN_ID,
org.eclipse.gemoc.executionframework.engine.Activator.CONSOLE_NAME);
}
return messagingSystem;
}
Expand Down
Expand Up @@ -73,7 +73,9 @@ public DefaultLoggingBackend resolveLoggingBackend()
_loggingBackend = new DefaultLoggingBackend(this);
MessagingSystemManager msm = new MessagingSystemManager();
// use the baseMessageGroup of the engine in order to share consoles instead of duplicating them
MessagingSystem ms = msm.createBestPlatformMessagingSystem(org.eclipse.gemoc.executionframework.engine.Activator.PLUGIN_ID, "Modeling Workbench Console");
MessagingSystem ms = msm.createBestPlatformMessagingSystem(
org.eclipse.gemoc.executionframework.engine.Activator.PLUGIN_ID,
org.eclipse.gemoc.executionframework.engine.Activator.CONSOLE_NAME);
_loggingBackend.setMessagingSystem(ms);
}
return _loggingBackend;
Expand Down
Expand Up @@ -103,7 +103,9 @@ public MessagingSystem getMessaggingSystem() {
if (messaggingSystem == null)
{
MessagingSystemManager msm = new MessagingSystemManager();
messaggingSystem = msm.createBestPlatformMessagingSystem(org.eclipse.gemoc.executionframework.engine.Activator.PLUGIN_ID, "Modeling Workbench Console");
messaggingSystem = msm.createBestPlatformMessagingSystem(
org.eclipse.gemoc.executionframework.engine.Activator.PLUGIN_ID,
org.eclipse.gemoc.executionframework.engine.Activator.CONSOLE_NAME);
}
return messaggingSystem;
}
Expand Down
Expand Up @@ -76,7 +76,9 @@ public DefaultLoggingBackend resolveLoggingBackend() {
{
_loggingBackend = new DefaultLoggingBackend(this);
MessagingSystemManager msm = new MessagingSystemManager();
MessagingSystem ms = msm.createBestPlatformMessagingSystem(org.eclipse.gemoc.executionframework.engine.Activator.PLUGIN_ID, "Execution Engine");
MessagingSystem ms = msm.createBestPlatformMessagingSystem(
org.eclipse.gemoc.executionframework.engine.Activator.PLUGIN_ID,
org.eclipse.gemoc.executionframework.engine.Activator.CONSOLE_NAME);
_loggingBackend.setMessagingSystem(ms);
}
return _loggingBackend;
Expand Down
Expand Up @@ -42,7 +42,9 @@ public static MessagingSystem getMessagingSystem() {
if (messagingSystem == null) {
MessagingSystemManager msm = new MessagingSystemManager();
// use the baseMessageGroup of the engine in order to share consoles instead of duplicating them
messagingSystem = msm.createBestPlatformMessagingSystem(org.eclipse.gemoc.executionframework.engine.Activator.PLUGIN_ID, "Modeling Workbench Console");
messagingSystem = msm.createBestPlatformMessagingSystem(
org.eclipse.gemoc.executionframework.engine.Activator.PLUGIN_ID,
org.eclipse.gemoc.executionframework.engine.Activator.CONSOLE_NAME);
}
return messagingSystem;
}
Expand Down

0 comments on commit 735023e

Please sign in to comment.