You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This function is called when a step moves in the pipeline to adjust the positions of any open previews it has
65
49
* to reflect the new order of the pipeline.
@@ -230,17 +214,13 @@ private int getIndexInPreviewsOfAStepSocket(OutputSocket<?> socket) {
230
214
intnumbOfSourcePreviews = getNumbOfSourcePreviews();//Count how many *source* previews (not *step* previews) are currently displayed
231
215
232
216
finalStepsocketStep = socket.getStep().get();//The pipeline step associated with the socket whose preview has changed
233
-
finalStepControllerstepView = this.pipelineController.findStepController(socketStep);//The gui object that displays the socketStep
234
-
intindexOfStep = this.pipeline.getSteps().indexOf(stepView); //The index of the step that has the socket in the pipeline
217
+
intindexOfStep = this.pipeline.getSteps().indexOf(socketStep); //The index of the step that has the socket in the pipeline
235
218
236
219
//Start at the first non-source socket in the list of previewed sockets
237
-
intindexInPreviews = numbOfSourcePreviews;
238
-
239
-
while ((this.previewedSockets.size() > indexInPreviews)//While there are sockets in the list of previewed sockets yet to be examined
240
-
&& ((this.pipeline.getSteps().indexOf(this.pipelineController.findStepController(this.previewedSockets.get(indexInPreviews).getStep().get()))) < indexOfStep)) {//...AND the socket at this index in the list of displayed sockets has an index in the pipeline less than the socket passed in as "socket"
241
-
indexInPreviews++;
242
-
}
243
-
returnindexInPreviews;
220
+
longindexInPreviews =
221
+
// The socket at this index in the list of displayed sockets has an index in the pipeline less than the socket passed in as "socket"
0 commit comments