From 9a56b92726dfa81e9c60bbad7d8cfb6ccfd466ec Mon Sep 17 00:00:00 2001 From: Alexander Fedorov Date: Thu, 23 May 2024 14:30:59 +0300 Subject: [PATCH] [#1370] Operator fails on startup Rework LocWorkbenchEmfformsMigrator --- ...al.workbench.emfforms.LocWorkbenchEmfformsMigrator.xml | 2 +- .../workbench/emfforms/LocWorkbenchEmfformsMigrator.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bundles/org.eclipse.passage.loc.workbench.emfforms/OSGI-INF/org.eclipse.passage.loc.internal.workbench.emfforms.LocWorkbenchEmfformsMigrator.xml b/bundles/org.eclipse.passage.loc.workbench.emfforms/OSGI-INF/org.eclipse.passage.loc.internal.workbench.emfforms.LocWorkbenchEmfformsMigrator.xml index 5ab05d3f1..ebad2a006 100644 --- a/bundles/org.eclipse.passage.loc.workbench.emfforms/OSGI-INF/org.eclipse.passage.loc.internal.workbench.emfforms.LocWorkbenchEmfformsMigrator.xml +++ b/bundles/org.eclipse.passage.loc.workbench.emfforms/OSGI-INF/org.eclipse.passage.loc.internal.workbench.emfforms.LocWorkbenchEmfformsMigrator.xml @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/bundles/org.eclipse.passage.loc.workbench.emfforms/src/org/eclipse/passage/loc/internal/workbench/emfforms/LocWorkbenchEmfformsMigrator.java b/bundles/org.eclipse.passage.loc.workbench.emfforms/src/org/eclipse/passage/loc/internal/workbench/emfforms/LocWorkbenchEmfformsMigrator.java index 55ce8fbee..0c1cd5bbe 100644 --- a/bundles/org.eclipse.passage.loc.workbench.emfforms/src/org/eclipse/passage/loc/internal/workbench/emfforms/LocWorkbenchEmfformsMigrator.java +++ b/bundles/org.eclipse.passage.loc.workbench.emfforms/src/org/eclipse/passage/loc/internal/workbench/emfforms/LocWorkbenchEmfformsMigrator.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2018, 2020 ArSysOp + * Copyright (c) 2018, 2024 ArSysOp * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at @@ -18,10 +18,10 @@ import org.osgi.service.component.annotations.Component; @Component -public class LocWorkbenchEmfformsMigrator { - +public final class LocWorkbenchEmfformsMigrator { + @Activate - public void activate() { + public void migrate() { EPackage.Registry.INSTANCE.put("http://org/eclipse/emf/ecp/view/model/1170", VViewPackage.eINSTANCE); //$NON-NLS-1$ }