Skip to content
Snippets Groups Projects
Commit 610a66f1 authored by Simon Barner's avatar Simon Barner
Browse files

- Fix comments

parent 3197fd85
No related branches found
No related tags found
No related merge requests found
......@@ -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}
*/
......
......@@ -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();) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment