Renamed logic.ui to logic.model
[Mograsim.git] / net.mograsim.logic.ui / src / net / mograsim / logic / ui / model / ViewModelModifiable.java
diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/ViewModelModifiable.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/ViewModelModifiable.java
deleted file mode 100644 (file)
index 3a95075..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-package net.mograsim.logic.ui.model;
-
-import java.util.Set;
-
-import net.mograsim.logic.ui.model.components.GUIComponent;
-import net.mograsim.logic.ui.model.wires.GUIWire;
-
-public class ViewModelModifiable extends ViewModel
-{
-       public String getDefaultComponentName(GUIComponent component)
-       {
-               Set<String> componentNames = getComponentsByName().keySet();
-               String nameBase = component.getClass().getSimpleName() + '#';
-               for (int i = 0;; i++)
-               {
-                       String nameCandidate = nameBase + i;
-                       if (!componentNames.contains(nameCandidate))
-                               return nameCandidate;
-               }
-       }
-
-       @Override
-       public void componentCreated(GUIComponent component)
-       {
-               super.componentCreated(component);
-       }
-
-       @Override
-       public void componentDestroyed(GUIComponent component)
-       {
-               super.componentDestroyed(component);
-       }
-
-       @Override
-       public void wireCreated(GUIWire wire)
-       {
-               super.wireCreated(wire);
-       }
-
-       @Override
-       public void wireDestroyed(GUIWire wire)
-       {
-               super.wireDestroyed(wire);
-       }
-}
\ No newline at end of file