Commit d8bfd350 authored by Hélène Ortiz's avatar Hélène Ortiz

Add a method to find the controller name of a property when we are sure

that this controller is not a driver
parent c091c2ac
......@@ -865,6 +865,15 @@ public abstract class Property implements ServerPropertyChangeListener, ICommand
public String getControllerNameForDynamicOrNot() {
int servantId = PropertyDatabase.getInstance().getServantIdForProperty(id);
if (servantId == -1) {
servantId = PropertyDatabase.getInstance().getServantIdForDynamicProperty(id);
return getServantName(servantId);
private String getServantName(int servantId) {
if (ServantDatabase.getInstance().isController(servantId)) {
return ServantDatabase.getInstance().getControllerName(servantId);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment