break;
case TRAJECTORY:
if (entry instanceof TrajectoryEntry) {
String location = getErrorLocation(entry, entryContainer);
Trajectory trajectory = ((TrajectoryEntry) entry).getTrajectory();
if (trajectory instanceof ContinuousTrajectory) {
editorComponent = new ContinuousTrajectoryComponent(panelError, errorsMap,
(ContinuousTrajectory) trajectory, location, this, labelName, tabTitle);
} else if (trajectory instanceof IntervalStepByStepTrajectory) {
editorComponent = new IntervalStepByStepTrajectoryComponent(panelError, errorsMap,
(IntervalStepByStepTrajectory) trajectory, location, this, labelName, tabTitle);
} else if (trajectory instanceof TabStepByStepTrajectory) {
editorComponent = new TabStepByStepTrajectoryComponent(panelError, errorsMap,
(TabStepByStepTrajectory) trajectory, location, this, labelName, tabTitle);
}
final ATrajectoryComponent<?> aTrajectoryComponent = (ATrajectoryComponent<?>) editorComponent;
aTrajectoryComponent.addBeingEditedListener(new ConfigurationEditionStateListener() {
@Override
public void setConfigurationBeingEdited(boolean isBeingEdited) {
Trajectory traj = aTrajectoryComponent.getTrajectory();
fireEditionStateChanged(isBeingEdited, entry, entryContainer,
traj.getStringTrajectory(), aTrajectoryComponent, labelName, tabTitle);
}
});
}
break;
default: