projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Renamed GUI to Model:
[Mograsim.git]
/
net.mograsim.logic.model
/
src
/
net
/
mograsim
/
logic
/
model
/
model
/
ViewModelModifiable.java
diff --git
a/net.mograsim.logic.model/src/net/mograsim/logic/model/model/ViewModelModifiable.java
b/net.mograsim.logic.model/src/net/mograsim/logic/model/model/ViewModelModifiable.java
index
97993a7
..
7ebde10
100644
(file)
--- a/
net.mograsim.logic.model/src/net/mograsim/logic/model/model/ViewModelModifiable.java
+++ b/
net.mograsim.logic.model/src/net/mograsim/logic/model/model/ViewModelModifiable.java
@@
-2,13
+2,12
@@
package net.mograsim.logic.model.model;
import java.util.Set;
import java.util.Set;
-import net.mograsim.logic.model.model.components.
GUI
Component;
-import net.mograsim.logic.model.model.wires.
GUI
Wire;
+import net.mograsim.logic.model.model.components.
Model
Component;
+import net.mograsim.logic.model.model.wires.
Model
Wire;
-//TODO a ViewModel is modifiable without casting to ViewModelModifiable via GUIWire::destroy and GUIComponent::destroy
public class ViewModelModifiable extends ViewModel
{
public class ViewModelModifiable extends ViewModel
{
- public String getDefaultComponentName(
GUI
Component component)
+ public String getDefaultComponentName(
Model
Component component)
{
Set<String> componentNames = getComponentsByName().keySet();
// TODO get the ID of component
{
Set<String> componentNames = getComponentsByName().keySet();
// TODO get the ID of component
@@
-41,26
+40,26
@@
public class ViewModelModifiable extends ViewModel
}
@Override
}
@Override
- public void componentCreated(
GUIComponent component
)
+ public void componentCreated(
ModelComponent component, Runnable destroyed
)
{
{
- super.componentCreated(component);
+ super.componentCreated(component
, destroyed
);
}
@Override
}
@Override
- public void
componentDestroyed(GUI
Component component)
+ public void
destroyComponent(Model
Component component)
{
{
- super.
componentDestroyed
(component);
+ super.
destroyComponent
(component);
}
@Override
}
@Override
- public void wireCreated(
GUIWire wire
)
+ public void wireCreated(
ModelWire wire, Runnable destroyed
)
{
{
- super.wireCreated(wire);
+ super.wireCreated(wire
, destroyed
);
}
@Override
}
@Override
- public void
wireDestroyed(GUI
Wire wire)
+ public void
destroyWire(Model
Wire wire)
{
{
- super.
wireDestroyed
(wire);
+ super.
destroyWire
(wire);
}
}
\ No newline at end of file
}
}
\ No newline at end of file