objectPanel = buildObjectPanel(fsObject);
if (fsObject instanceof ContinuousActuator) {
continuousActuatorPanel.add(objectPanel, constraints);
CustomParameterPanel customParametersPanel = buildCustomParametersPanel(
(Actor) fsObject, pluginObj);
if (customParametersPanel != null) {
objectPanel.add(customParametersPanel, customParametersPanelConstraints);
}
for (final Entry entry : fsObject.getEntries()) {
if ((!entry.isExpert()) || (entry.isExpert() && isExpert)) {
try {
buidEntryGUI(objectPanel, continuousActuatorPanel, fsObject, pluginObj,
entry, CONTINUOUS_ACTUATORS, customParametersPanel);
} catch (FSParsingException e) {
if (e.getComponent() != null && e.getLabelName() != null) {
displayError(entry, section, fsObject, e.getLabelName(),
e.getComponent(), e.getMessage(), CONTINUOUS_ACTUATORS);
}
LOGGER.log(Level.SEVERE, e.getMessage());
}
}
}
} else if (fsObject instanceof Actuator) {
actuatorPanel.add(objectPanel, constraints);
CustomParameterPanel customParametersPanel = buildCustomParametersPanel(
(Actor) fsObject, pluginObj);
if (customParametersPanel != null) {
objectPanel.add(customParametersPanel, customParametersPanelConstraints);
}
for (final Entry entry : fsObject.getEntries()) {
if ((!entry.isExpert()) || (entry.isExpert() && isExpert)) {
try {
buidEntryGUI(objectPanel, actuatorPanel, fsObject, pluginObj, entry,
ACTUATORS, customParametersPanel);
} catch (FSParsingException e) {
if (e.getComponent() != null && e.getLabelName() != null) {
displayError(entry, section, fsObject, e.getLabelName(),
e.getComponent(), e.getMessage(), ACTUATORS);
}
LOGGER.log(Level.SEVERE, e.getMessage());
}
}
}
} else if (fsObject instanceof Sensor) {
sensorPanel.add(objectPanel, constraints);
CustomParameterPanel customParametersPanel = buildCustomParametersPanel(
(Actor) fsObject, pluginObj);
if (customParametersPanel != null) {
objectPanel.add(customParametersPanel, customParametersPanelConstraints);
}
for (final Entry entry : fsObject.getEntries()) {
if ((!entry.isExpert()) || (entry.isExpert() && isExpert)) {
try {
buidEntryGUI(objectPanel, sensorPanel, fsObject, pluginObj, entry,
SENSORS, customParametersPanel);
} catch (FSParsingException e) {
if (e.getComponent() != null && e.getLabelName() != null) {
displayError(entry, section, fsObject, e.getLabelName(),
e.getComponent(), e.getMessage(), SENSORS);
}
LOGGER.log(Level.SEVERE, e.getMessage());
}
}
}
} else if (fsObject instanceof TimeBase) {
timebasePanel.add(objectPanel, constraints);
CustomParameterPanel customParametersPanel = buildCustomParametersPanel(
(Actor) fsObject, pluginObj);
if (customParametersPanel != null) {
objectPanel.add(customParametersPanel, customParametersPanelConstraints);
}
for (final Entry entry : fsObject.getEntries()) {
if ((!entry.isExpert()) || (entry.isExpert() && isExpert)) {
try {
buidEntryGUI(objectPanel, timebasePanel, fsObject, pluginObj, entry,
TIMEBASE, customParametersPanel);
} catch (FSParsingException e) {
if (e.getComponent() != null && e.getLabelName() != null) {
displayError(entry, section, fsObject, e.getLabelName(),
e.getComponent(), e.getMessage(), TIMEBASE);
}
LOGGER.log(Level.SEVERE, e.getMessage());
}
}
}
} else if (fsObject instanceof Hook) {
hookPanel.add(objectPanel, constraints);
CustomParameterPanel customParametersPanel = buildCustomParametersPanel(
(Actor) fsObject, pluginObj);
if (customParametersPanel != null) {
objectPanel.add(customParametersPanel, customParametersPanelConstraints);
}
for (final Entry entry : fsObject.getEntries()) {
if ((!entry.isExpert()) || (entry.isExpert() && isExpert)) {
try {
buidEntryGUI(objectPanel, hookPanel, fsObject, pluginObj, entry, HOOKS,
customParametersPanel);
} catch (FSParsingException e) {
if (e.getComponent() != null && e.getLabelName() != null) {
displayError(entry, section, fsObject, e.getLabelName(),
e.getComponent(), e.getMessage(), HOOKS);
}
LOGGER.log(Level.SEVERE, e.getMessage());
}
}
}
} else if (fsObject instanceof Monitor) {
monitorPanel.add(objectPanel, constraints);
CustomParameterPanel customParametersPanel = buildCustomParametersPanel(
(Actor) fsObject, pluginObj);
if (customParametersPanel != null) {
objectPanel.add(customParametersPanel, customParametersPanelConstraints);
}