+ Matcher matcher = pattern.matcher(strInfo);
+ matcher.find();
+
+ matcher.group(1);
+ String resnum = new String(matcher.group(2));
+ String chainId = matcher.group(3);
+
+ String picked = resnum;
+
+ if (chainId != null)
+ picked+=(":"+chainId.substring(1, chainId.length()));
+
+ picked+=".C";
+
+ if (!atomsPicked.contains(picked))
+ {
+ if(chainId!=null)
+ viewer.evalString("select "+picked+";label %n %r:%c");
+ else
+ viewer.evalString("select "+picked+";label %n %r");
+ atomsPicked.addElement(picked);
+ }
+ else
+ {
+ viewer.evalString("select "+picked+";label off");
+ atomsPicked.removeElement(picked);
+ }
+