From 610a66f127b74ba0281552e82612ed8e0acbb6a4 Mon Sep 17 00:00:00 2001 From: Simon Barner <barner@fortiss.org> Date: Thu, 10 Mar 2016 13:47:33 +0000 Subject: [PATCH] - Fix comments --- .../org/fortiss/tooling/kernel/utils/EcoreUtils.java | 7 +++++-- .../fortiss/tooling/kernel/utils/UniqueIDUtils.java | 12 +++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/utils/EcoreUtils.java b/org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/utils/EcoreUtils.java index c30ca832b..a37cc8f25 100644 --- a/org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/utils/EcoreUtils.java +++ b/org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/utils/EcoreUtils.java @@ -55,7 +55,7 @@ import org.eclipse.emf.ecore.util.EcoreUtil.UsageCrossReferencer; * @author ratiu * @author $Author: hoelzl $ * @version $Rev: 18709 $ - * @ConQAT.Rating GREEN Hash: 4F099830A587B93D126C1B742789F4F6 + * @ConQAT.Rating GREEN Hash: DCA15548774DAD2A0A1B51F5B6AC808E */ public class EcoreUtils { @@ -506,7 +506,10 @@ public class EcoreUtils { * Sets the notification state for the given {@link EObject} and its children. * * @param element - * The element for whom and its children the notification state should be . + * The element for whom and its children the notification state should be. + * + * @param value + * Whether to enable or disable notifications of the given {@code element}. * * @return {@code true}, if the notifications can be disabled for the given {@link EObject} */ diff --git a/org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/utils/UniqueIDUtils.java b/org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/utils/UniqueIDUtils.java index f8c56096e..3c9c1750e 100644 --- a/org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/utils/UniqueIDUtils.java +++ b/org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/utils/UniqueIDUtils.java @@ -36,7 +36,7 @@ import org.fortiss.tooling.kernel.service.IPersistencyService; * @author hoelzl * @author $Author$ * @version $Rev$ - * @ConQAT.Rating GREEN Hash: BE9153A867DF5FD3050E98172E9D0778 + * @ConQAT.Rating GREEN Hash: C1FB52C5F3C9647F0B3A7E08A766EB60 */ public class UniqueIDUtils { @@ -48,6 +48,8 @@ public class UniqueIDUtils { * the model to be updated * @param currentMaxId * the current maximum ID + * + * @return The maximum ID after the generation of missing IDs. */ public static int generateMissingIDs(EObject existingModel, int currentMaxId) { for(Iterator<EObject> i = existingModel.eAllContents(); i.hasNext();) { @@ -93,10 +95,12 @@ public class UniqueIDUtils { } /** - * Returns the next ID not used within the given model + * Returns the next ID not used within the given model. * * @param existingModel * the model to be searched + * + * @return Next ID not used within the given model. */ public static int getLargestID(EObject existingModel) { int max = 0; @@ -238,7 +242,9 @@ public class UniqueIDUtils { * Verify whether there are missing id. * * @param existingModel - * a model element representing the scope in which the check is done + * a model element representing the scope in which the check is done. + * + * @return {@code true} iff the {@code existingModel} has missing IDs. */ public static boolean hasMissingIDs(EObject existingModel) { for(Iterator<EObject> i = existingModel.eAllContents(); i.hasNext();) { -- GitLab