diff --git a/org.moflon.core.feature/feature.xml b/org.moflon.core.feature/feature.xml index ce9df3e5..b06fdbdd 100644 --- a/org.moflon.core.feature/feature.xml +++ b/org.moflon.core.feature/feature.xml @@ -2,7 +2,7 @@ @@ -170,4 +170,11 @@ See here for more details on EPL: http://www.eclipse.org/org/documents/epl-v10.p version="0.0.0" unpack="false"/> + + diff --git a/org.moflon.core.releng.updatesite/category.xml b/org.moflon.core.releng.updatesite/category.xml index 5f7a91ad..4442cd41 100644 --- a/org.moflon.core.releng.updatesite/category.xml +++ b/org.moflon.core.releng.updatesite/category.xml @@ -1,6 +1,6 @@ - + diff --git a/org.moflon.core.releng.updatesite/site.xml b/org.moflon.core.releng.updatesite/site.xml index 42b1ee7b..1ab6b264 100644 --- a/org.moflon.core.releng.updatesite/site.xml +++ b/org.moflon.core.releng.updatesite/site.xml @@ -1,6 +1,12 @@ - + +For all available update channels of eMoflon::Core, see +https://github.com/eMoflon/emoflon-core-updatesite/ . +For further information on eMoflon::Core, see +https://emoflon.org/ . + + diff --git a/org.moflon.core.ui.packageregistration/META-INF/MANIFEST.MF b/org.moflon.core.ui.packageregistration/META-INF/MANIFEST.MF index 7a2016c1..d79081ef 100644 --- a/org.moflon.core.ui.packageregistration/META-INF/MANIFEST.MF +++ b/org.moflon.core.ui.packageregistration/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: org.moflon.core.ui.packageregistration Bundle-SymbolicName: org.moflon.core.ui.packageregistration;singleton:=true -Bundle-Version: 1.0.0.qualifier +Bundle-Version: 1.0.1.qualifier Bundle-RequiredExecutionEnvironment: JavaSE-1.8 Require-Bundle: org.eclipse.emf.ecore;bundle-version="2.11.0", org.eclipse.core.resources, diff --git a/org.moflon.core.ui.packageregistration/build.properties b/org.moflon.core.ui.packageregistration/build.properties index e9863e28..79785aca 100644 --- a/org.moflon.core.ui.packageregistration/build.properties +++ b/org.moflon.core.ui.packageregistration/build.properties @@ -2,4 +2,5 @@ source.. = src/ output.. = bin/ bin.includes = META-INF/,\ .,\ + icons/,\ plugin.xml diff --git a/org.moflon.core.ui.packageregistration/src/org/moflon/core/ui/packageregistration/RegisterMetamodelHandler.java b/org.moflon.core.ui.packageregistration/src/org/moflon/core/ui/packageregistration/RegisterMetamodelHandler.java index 2e3d59fd..7fa7eb1c 100644 --- a/org.moflon.core.ui.packageregistration/src/org/moflon/core/ui/packageregistration/RegisterMetamodelHandler.java +++ b/org.moflon.core.ui.packageregistration/src/org/moflon/core/ui/packageregistration/RegisterMetamodelHandler.java @@ -23,11 +23,16 @@ /** * This class provides the front-end capabilities for registering an EMF model. * - * @author Roland Kluge - Initial implementation - * + * @author Dimitrios Kolovos - initial API and implementation + * @author Roland Kluge - Adjustment to eMoflon::Core */ public class RegisterMetamodelHandler extends AbstractCommandHandler { + /** + * Invokes {@link #registerMetamodelInFile(IFile)} for each {@link IFile} in the selection + * @param event the event to handle + * @param {@link AbstractCommandHandler#DEFAULT_HANDLER_RESULT} + */ @Override public Object execute(final ExecutionEvent event) throws ExecutionException { final ISelection selection = HandlerUtil.getCurrentSelectionChecked(event); @@ -44,13 +49,17 @@ public Object execute(final ExecutionEvent event) throws ExecutionException { return AbstractCommandHandler.DEFAULT_HANDLER_RESULT; } + /** + * Uses {@link EmfRegistryManager} to register the given {@link IFile} + * @param file the file to register + */ private void registerMetamodelInFile(final IFile file) { final String fileName = file.getFullPath().toOSString(); try { EmfRegistryManager.getInstance().registerMetamodel(fileName); logger.info("Metamodel " + fileName + " registered successfully"); } catch (final Exception ex) { - logger.info("Metamodel " + fileName + " could not be registered", ex); + logger.error("Metamodel " + fileName + " could not be registered", ex); } }