visionProviderConfigPanel.removeAll();
if (index != -1) {
index = table.convertRowIndexToModel(index);
Camera camera = tableModel.getCamera(index);
Wizard generalConfigWizard = new CameraConfigurationWizard(camera);
if (generalConfigWizard != null) {
generalConfigWizard.setWizardContainer(CamerasPanel.this);
JPanel panel = generalConfigWizard.getWizardPanel();
generalConfigPanel.add(panel);
}
Wizard cameraSpecificConfigWizard = camera.getConfigurationWizard();
if (cameraSpecificConfigWizard != null) {
cameraSpecificConfigWizard.setWizardContainer(CamerasPanel.this);
JPanel panel = cameraSpecificConfigWizard.getWizardPanel();
cameraSpecificConfigPanel.add(panel);
}
VisionProvider visionProvider = camera.getVisionProvider();
if (visionProvider != null) {
Wizard visionProviderConfigWizard = visionProvider.getConfigurationWizard();
if (visionProviderConfigWizard != null) {
visionProviderConfigWizard.setWizardContainer(CamerasPanel.this);
JPanel panel = visionProviderConfigWizard.getWizardPanel();
visionProviderConfigPanel.add(panel);
}
}
}