Visual Edit

This commit is contained in:
Alexander Lobas
2013-02-07 16:26:37 +04:00
parent 511f68eafd
commit df816f14ce
@@ -93,12 +93,7 @@ public class DragTracker extends SelectionTracker {
@Override
protected void updateContext(RadComponent target) {
if (myContext.getComponents().get(0).getParent() == target) {
myContext.setType(OperationContext.MOVE);
}
else {
myContext.setType(OperationContext.ADD);
}
updateContextType(target);
}
};
RadComponent target = myArea.findTarget(myCurrentScreenX, myCurrentScreenY, filter);
@@ -112,6 +107,15 @@ public class DragTracker extends SelectionTracker {
}
}
protected void updateContextType(RadComponent target) {
if (myContext.getComponents().get(0).getParent() == target) {
myContext.setType(OperationContext.MOVE);
}
else {
myContext.setType(OperationContext.ADD);
}
}
@Override
protected void updateContext() {
super.updateContext();