|
Lines 34-39
Link Here
|
| 34 |
import org.eclipse.gef.Request; |
34 |
import org.eclipse.gef.Request; |
| 35 |
import org.eclipse.gef.RequestConstants; |
35 |
import org.eclipse.gef.RequestConstants; |
| 36 |
import org.eclipse.gef.SharedCursors; |
36 |
import org.eclipse.gef.SharedCursors; |
|
|
37 |
import org.eclipse.gef.SnapToGeometry; |
| 37 |
import org.eclipse.gef.SnapToHelper; |
38 |
import org.eclipse.gef.SnapToHelper; |
| 38 |
import org.eclipse.gef.commands.Command; |
39 |
import org.eclipse.gef.commands.Command; |
| 39 |
import org.eclipse.gef.commands.CompoundCommand; |
40 |
import org.eclipse.gef.commands.CompoundCommand; |
|
Lines 599-605
Link Here
|
| 599 |
request.getExtendedData().clear(); |
600 |
request.getExtendedData().clear(); |
| 600 |
request.setMoveDelta(moveDelta); |
601 |
request.setMoveDelta(moveDelta); |
| 601 |
|
602 |
|
| 602 |
if (snapToHelper != null && !getCurrentInput().isModKeyDown(MODIFIER_IGNORE_SNAP)) { |
603 |
if (snapToHelper != null && !getCurrentInput().isModKeyDown(MODIFIER_IGNORE_SNAP) && ((Boolean) getCurrentViewer().getProperty(SnapToGeometry.PROPERTY_SNAP_ENABLED)).booleanValue()) { |
| 603 |
PrecisionRectangle baseRect = sourceRectangle.getPreciseCopy(); |
604 |
PrecisionRectangle baseRect = sourceRectangle.getPreciseCopy(); |
| 604 |
PrecisionRectangle jointRect = compoundSrcRect.getPreciseCopy(); |
605 |
PrecisionRectangle jointRect = compoundSrcRect.getPreciseCopy(); |
| 605 |
baseRect.translate(moveDelta); |
606 |
baseRect.translate(moveDelta); |