Class UniqNamesManager

java.lang.Object
com.amalgamasimulation.desktop.ui.editor.commands.UniqNamesManager

public class UniqNamesManager extends Object
  • Method Details

    • getInstance

      public static UniqNamesManager getInstance()
    • generateUniqueId

      public <C extends org.eclipse.emf.ecore.EObject, T extends org.eclipse.emf.ecore.EObject> String generateUniqueId(C container, T eObject, String pattern)
    • getIdAttribute

      public org.eclipse.emf.ecore.EAttribute getIdAttribute(org.eclipse.emf.ecore.EClass eClass)
    • getNameAttribute

      public org.eclipse.emf.ecore.EAttribute getNameAttribute(org.eclipse.emf.ecore.EClass eclass)
    • getId

      public String getId(org.eclipse.emf.ecore.EObject object)
    • setId

      public void setId(org.eclipse.emf.ecore.EObject object, String newId)
    • findLastNumber

      public <T extends org.eclipse.emf.ecore.EObject> long findLastNumber(List<T> existingObjects, String objectIdPattern)
    • getNameUniq

      public <C extends org.eclipse.emf.ecore.EObject, T extends org.eclipse.emf.ecore.EObject> String getNameUniq(C container, T eObject, String oldName)