Changeset 294:e98e14d1c808 in finroc_tools_finstruct-java
- Timestamp:
- 04.01.2022 14:31:52 (2 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
FinstructConnectionPanel.java
r293 r294 28 28 import java.awt.Rectangle; 29 29 import java.awt.event.ActionEvent; 30 import java.awt.event.InputEvent; 30 31 import java.awt.event.MouseEvent; 31 32 import java.util.ArrayList; … … 330 331 331 332 @Override 332 protected void connect(List<Object> nodes1, List<Object> nodes2 ) {333 protected void connect(List<Object> nodes1, List<Object> nodes2, InputEvent event) { 333 334 if (nodes1 == null || nodes2 == null || nodes1.size() == 0 || nodes2.size() == 0) { 334 335 return; … … 378 379 379 380 // Query for any type conversions 380 boolean showCreateConnectorDialog = false;381 boolean showCreateConnectorDialog = (event.getModifiersEx() & InputEvent.SHIFT_DOWN_MASK) != 0; 381 382 for (FinstructAction a : ((CompositeAction)action).getActions()) { 382 383 if (a instanceof ConnectAction) { -
SmartConnecting.java
r282 r294 187 187 } else { 188 188 result.rating = getBestRating(forwardPossible ? sourceRuntime.getTypeConversionRating(sourcePort.getDataType(), destinationPort.getDataType()) : Definitions.TypeConversionRating.IMPOSSIBLE, 189 reversePossible ? sourceRuntime.getTypeConversionRating( sourcePort.getDataType(), destinationPort.getDataType()) : Definitions.TypeConversionRating.IMPOSSIBLE);189 reversePossible ? sourceRuntime.getTypeConversionRating(destinationPort.getDataType(), sourcePort.getDataType()) : Definitions.TypeConversionRating.IMPOSSIBLE); 190 190 } 191 191
Note: See TracChangeset
for help on using the changeset viewer.