Commit 64edb978 authored by Locatelli's avatar Locatelli
Browse files

add specifc functions for the tablet

parent 823522cb
......@@ -81,5 +81,9 @@ public class CommandManager {
}
return command;
}
public Command getCommand(Controller controller, String commandName) throws CommandNotFoundException {
return getCommand(controller, commandName, false, PluginType.GENERAL);
}
}
\ No newline at end of file
......@@ -318,6 +318,23 @@ public class PropertyManager {
return property;
}
/**
*
* @param controller
* @param propertyName
* @param pluginType TODO
* @return
*/
public Property getProperty(Controller controller, String propertyName) {
Property property;
if (controller instanceof Servant) {
property = getPropertyForServant((Servant)controller, propertyName);
} else {
property = getPropertyForCommandBox((AtomicCommandWrapper)controller, propertyName);
}
return property;
}
/**
*
......@@ -670,7 +687,16 @@ public class PropertyManager {
return property;
}
public Property getDynamicPropertyChild(Controller controller, String realPropertyName) {
Property property;
try {
property = getDynamicPropertyChild(controller, realPropertyName, PluginType.GENERAL);
} catch (PropertyNotFoundException e) {
property = null;
}
return property;
}
/**
* Search dynamic property
*/
......@@ -695,8 +721,6 @@ public class PropertyManager {
throw pnfe;
}
/**
* Used to clone a property
* @param controllerType
......
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