projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed an issue when removing multiple WirePointHandles at once
[Mograsim.git]
/
net.mograsim.logic.model.editor
/
src
/
net
/
mograsim
/
logic
/
model
/
editor
/
handles
/
WirePointHandle.java
diff --git
a/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/handles/WirePointHandle.java
b/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/handles/WirePointHandle.java
index
2457579
..
0779247
100644
(file)
--- a/
net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/handles/WirePointHandle.java
+++ b/
net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/handles/WirePointHandle.java
@@
-11,14
+11,16
@@
import net.mograsim.logic.model.model.wires.GUIWire;
public class WirePointHandle extends Handle
{
private final static int END_OFFSET = 4;
public class WirePointHandle extends Handle
{
private final static int END_OFFSET = 4;
+ private final HandleManager manager;
private boolean selected = false;
public final GUIWire parent;
private int pointIndex;
private boolean selected = false;
public final GUIWire parent;
private int pointIndex;
- public WirePointHandle(GUIWire parent, int pointIndex)
+ public WirePointHandle(
HandleManager manager,
GUIWire parent, int pointIndex)
{
super();
{
super();
+ this.manager = manager;
this.parent = parent;
this.pointIndex = pointIndex;
setSize(END_OFFSET, END_OFFSET);
this.parent = parent;
this.pointIndex = pointIndex;
setSize(END_OFFSET, END_OFFSET);
@@
-63,7
+65,7
@@
public class WirePointHandle extends Handle
@Override
public void reqDelete()
{
@Override
public void reqDelete()
{
-
parent.removePathPoint(pointIndex
);
+
manager.destroyWirePointHandle(parent, this
);
}
@Override
}
@Override