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 c30ca832bbb792904294b6b1e8455982b6b583da..a37cc8f2551c1e023f58d321b0b6f34c710e3bb6 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 f8c56096e12f59a25d35d3250322949a6e17a33f..3c9c1750e5b400cb1ba0aa8683e31a1da1e48e49 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();) {