added icon for snap

renamed snap to objects
This commit is contained in:
bancika
2020-03-23 23:25:18 +01:00
parent a6b7debfd7
commit 88ec95d4fa
5 changed files with 9 additions and 9 deletions
@@ -80,7 +80,7 @@ public interface IPlugInPort extends ISelectionProcessor, IMouseProcessor, IKeyP
public static final String SNAP_TO_NONE = "None";
public static final String SNAP_TO_GRID = "Grid";
public static final String SNAP_TO_OBJECTS = "Objects";
public static final String SNAP_TO_COMPONENTS = "Components";
public static final String SNAP_TO_DEFAULT = SNAP_TO_GRID;
public static final int DND_TOGGLE_STICKY = 0x1;
@@ -745,7 +745,7 @@ public class Presenter implements IPlugInPort {
snapTo = IPlugInPort.SNAP_TO_NONE;
}
boolean snapToGrid = snapTo.equalsIgnoreCase(IPlugInPort.SNAP_TO_GRID);
boolean snapToObjects = snapTo.equalsIgnoreCase(IPlugInPort.SNAP_TO_OBJECTS);
boolean snapToObjects = snapTo.equalsIgnoreCase(IPlugInPort.SNAP_TO_COMPONENTS);
if (altDown) {
Project oldProject = null;
@@ -1183,7 +1183,7 @@ public class Presenter implements IPlugInPort {
String snapTo = ConfigurationManager.getInstance().readString(IPlugInPort.SNAP_TO_KEY, IPlugInPort.SNAP_TO_DEFAULT);
if (this.dragAction == IPlugInPort.DND_TOGGLE_SNAP)
return false;
return snapTo.equalsIgnoreCase(IPlugInPort.SNAP_TO_OBJECTS);
return snapTo.equalsIgnoreCase(IPlugInPort.SNAP_TO_COMPONENTS);
}
@Override
@@ -2716,7 +2716,7 @@
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>NEW_FEATURE</changeType>
<description>Added "Snap To Objects" feature that snaps control points to control points of the nearest components</description>
<description>Added "Snap To Components" feature that snaps control points to control points of the nearest components</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>NEW_FEATURE</changeType>