Community
Participate
Working Groups
Steps to reproduce: open a papyrus model, select an element e.g. a class. Now change to a text-based editor (e.g. Java). Each time you change away from the Papyrus editor, an "unexpected error" will show up in the error log. It seems to be caused by a current selection still within a Papyrus editor but the current editor is no longer a Papyrus editor. org.eclipse.papyrus.core.services.ServiceNotFoundException: Can't get the ServiceRegistry from current Eclipse Active Editor at org.eclipse.papyrus.core.utils.ServiceUtilsForActionHandlers.getServiceRegistry(ServiceUtilsForActionHandlers.java:77) at org.eclipse.papyrus.core.utils.ServiceUtilsForActionHandlers.getTransactionalEditingDomain(ServiceUtilsForActionHandlers.java:88) at org.eclipse.papyrus.diagram.common.handlers.GraphicalCommandHandler.getEditingDomain(GraphicalCommandHandler.java:143) at org.eclipse.papyrus.diagram.common.handlers.DeleteFromModelCommandHandler.getCommand(DeleteFromModelCommandHandler.java:46) at org.eclipse.papyrus.diagram.common.handlers.GraphicalCommandHandler.isEnabled(GraphicalCommandHandler.java:108) at org.eclipse.ui.internal.handlers.HandlerProxy.isEnabled(HandlerProxy.java:320) at org.eclipse.core.commands.Command.isEnabled(Command.java:833) at org.eclipse.core.commands.Command.setHandler(Command.java:965) at org.eclipse.ui.internal.handlers.HandlerAuthority.updateCommand(HandlerAuthority.java:459) at org.eclipse.ui.internal.handlers.HandlerAuthority.processChangedCommands(HandlerAuthority.java:638) at org.eclipse.ui.internal.handlers.HandlerAuthority.access$1(HandlerAuthority.java:610) at org.eclipse.ui.internal.handlers.HandlerAuthority$1.propertyChange(HandlerAuthority.java:175) at org.eclipse.ui.internal.services.EvaluationAuthority$1.run(EvaluationAuthority.java:252) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
Created attachment 204302 [details] stacktrace I had the same exception, which caused my Model Explorer to fail to initialize: - I opened the Project Explorer view - I opened a model.notation with a text editor - I clicked on the Model Explorer tab The Model Explorer stayed empty (gray), and I get the attached exception in my error log.
Can't be reproduced in the current version I close the task