{
try
{
final NamespaceCollection nc = StyleSheetParserUtil.getInstance().getNamespaceCollection();
final String selectorText = textField.getText();
final SelectorList list = StyleSheetParserUtil.getInstance().parseSelector(nc, selectorText);
styleRule.clearSelectors();
textField.setBackground(color);
for (int i = 0; i < list.getLength(); i++)
{
final CSSSelector selector = (CSSSelector) list.item(i);
styleRule.addSelector(selector);
}
pane.setTitle(Messages.getString("StyleDefinitionEditorDialog.RuleTitle", selectorText));
}