Made Am2910 components usable in Editor
[Mograsim.git] / net.mograsim.logic.model / src / net / mograsim / logic / model / serializing / IndirectGUIComponentCreator.java
index 884e3ba..090ca86 100644 (file)
@@ -99,6 +99,7 @@ public class IndirectGUIComponentCreator
                                        ComponentSupplier componentSupplier = componentSuppliers.get(className);
                                        if (componentSupplier != null)
                                                return componentSupplier.create(model, params, name);
+                                       throw new IllegalArgumentException("Component supplier not found for ID " + id + " (resolved: " + resolvedID + ")");
                                } else
                                // we know id has to start with "file:" here
                                // because standardComponentIDs only contains strings starting with "class:" or "file:"