mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Visual Edit
This commit is contained in:
+10
-6
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user