protected Control findControl(Key key) { Combo comboBox= getComboBox(key); if (comboBox != null) { return comboBox; } Button checkBox= getCheckBox(key); if (checkBox != null) { return checkBox; } Text text= getTextControl(key); if (text != null) { return text; } Link link= getLink(key); if (link != null) { return link; } return null; }
protected Control findControl(Key key) { Combo comboBox= getComboBox(key); if (comboBox != null) { return comboBox; } Button checkBox= getCheckBox(key); if (checkBox != null) { return checkBox; } Text text= getTextControl(key); if (text != null) { return text; } Link link= getLink(key); if (link != null) { return link; } return null; }
public PreferenceTreeNode<Button> addCheckBoxWithLink(Composite parentComposite, String label, Key key, String[] values, int indent, PreferenceTreeNode<?> parentNode, int widthHint, SelectionListener listener) { Button checkBox= fConfigBlock.addCheckBoxWithLink(parentComposite, label, key, values, indent, widthHint, listener); PreferenceTreeNode<Button> node= addChild(parentNode, new PreferenceTreeNode<>(label, checkBox, true, CHECK_BOX_MATCHER)); addChild(node, new PreferenceTreeNode<>(label, fConfigBlock.getLink(key), true)); return node; }
control= fConfigBlock.getExpandableComposite(node.getKey()); } else if (controlType == PreferenceTreeNode.LINK) { control= fConfigBlock.getLink(node.getKey());