}
private void newString() {
TreeItem treeItem;
ContainerKeyInfo cinfo = new ContainerKeyInfo();
if (itemsSelected[0] instanceof TreeItem)
treeItem = (TreeItem) itemsSelected[0];
else
treeItem = getTreeItemByTableItem((TableItem) itemsSelected[0]);
parseContainer(treeItem, cinfo);
NewStringDialog dialog = new NewStringDialog(shell, iconImage,
cinfo.getId(), cinfo.getServerName(), cinfo.getDb(),
cinfo.getContainerStr());
StringInfo info = (StringInfo) dialog.open();
if (info != null) {
service2.addString(cinfo.getId(), cinfo.getDb(), info.getKey(),
info.getValue(), info.getTtl());
treeItem.setData(ITEM_OPENED, false);
dbContainerTreeItemSelected(treeItem, false);
gotoDBContainer(cinfo.getId(), cinfo.getDb(), info.getKey(), true,
false);
}
}