Explorar o código

renamed init method

Andreas Mülder %!s(int64=10) %!d(string=hai) anos
pai
achega
43e6701471

+ 6 - 6
plugins/org.yakindu.base.types/src/org/yakindu/base/types/typesystem/AbstractTypeSystem.java

@@ -37,17 +37,17 @@ import org.yakindu.base.types.TypesFactory;
  */
 public abstract class AbstractTypeSystem implements ITypeSystem {
 
-	private Map<String, Type> typeRegistry = new HashMap<String, Type>();
-	private Map<Type, Type> extendsRegistry = new HashMap<Type, Type>();
-	private Map<Type, Type> conversionRegistry = new HashMap<Type, Type>();
+	protected Map<String, Type> typeRegistry = new HashMap<String, Type>();
+	protected Map<Type, Type> extendsRegistry = new HashMap<Type, Type>();
+	protected Map<Type, Type> conversionRegistry = new HashMap<Type, Type>();
 
-	protected abstract void initStaticTypes();
+	protected abstract void initBuiltInTypes();
 
-	private Resource resource;
+	protected Resource resource;
 
 	public AbstractTypeSystem() {
 		resource = new ResourceImpl(URI.createURI("types"));
-		initStaticTypes();
+		initBuiltInTypes();
 	}
 
 	protected void reset() {

+ 1 - 1
plugins/org.yakindu.base.types/src/org/yakindu/base/types/typesystem/DefaultTypeSystem.java

@@ -30,7 +30,7 @@ public class DefaultTypeSystem extends AbstractTypeSystem {
 	public static final String VOID = "void";
 
 	@Override
-	protected void initStaticTypes() {
+	protected void initBuiltInTypes() {
 		declarePrimitive(STRING);
 		declarePrimitive(REAL);
 		declarePrimitive(INTEGER);