@Override void add(Object parent, Object node) { ((IPreferenceNode) parent).add((IPreferenceNode) node); }
/** * Adds the given preference node as a subnode of the * node at the given path. * * @param path the path * @param node the node to add * @return <code>true</code> if the add was successful, * and <code>false</code> if there is no contribution at * the given path */ public boolean addTo(String path, IPreferenceNode node) { IPreferenceNode target = find(path); if (target == null) { return false; } target.add(node); return true; }
/** * Adds the given preference node as a subnode of the * node at the given path. * * @param path the path * @param node the node to add * @return <code>true</code> if the add was successful, * and <code>false</code> if there is no contribution at * the given path */ public boolean addTo(String path, IPreferenceNode node) { IPreferenceNode target = find(path); if (target == null) { return false; } target.add(node); return true; }
/** * Adds the given preference node as a subnode of the * node at the given path. * * @param path the path * @param node the node to add * @return <code>true</code> if the add was successful, * and <code>false</code> if there is no contribution at * the given path */ public boolean addTo(String path, IPreferenceNode node) { IPreferenceNode target = find(path); if (target == null) { return false; } target.add(node); return true; }
private IPreferenceNode addNode(String category, String id, String name, IConfigurationElement config) { IPreferenceNode parent = find(category); PreferenceNode node = new SubpagePreferenceNode(id, name, config); if (parent!=null) parent.add(node); return node; } }
addToRoot(node); } else { parent.add(node);