tmf: Update next input in custom parser wizard when removing input
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / tracecompass / internal / tmf / ui / parsers / wizards / CustomTxtParserInputWizardPage.java
index dde744266ccb78e5765495b6f867f16382079a84..8f5c98f133f215ef945053b456ca266bc6cdf7c2 100644 (file)
@@ -261,6 +261,10 @@ public class CustomTxtParserInputWizardPage extends WizardPage {
                 if (inputLine.parentInput == null) {
                     definition.inputs.remove(inputLine);
                 } else {
+                    int index = inputLine.parentInput.childrenInputs.indexOf(inputLine);
+                    if (index > 0) {
+                        inputLine.parentInput.childrenInputs.get(index - 1).nextInput = inputLine.nextInput;
+                    }
                     inputLine.parentInput.childrenInputs.remove(inputLine);
                 }
                 treeViewer.refresh();
This page took 0.02467 seconds and 5 git commands to generate.