String title = getGui().getDialogPropertyValue("Strings", "RoutShapeRemoveError.Title");
String message = getGui().getDialogPropertyValue("Strings", "RoutShapeRemoveError.Message");
getGui().showMessageBox(title, message);
}else{
// clear everythin under the item in the tree
TreeItem selectedItem = m_DiagramTree.getTreeItem(xSelectedShape);
TreeItem dadItem = selectedItem.getDad();
if(selectedItem.equals(dadItem.getFirstChild())){
if(selectedItem.getFirstSibling() != null){
dadItem.setFirstChild(selectedItem.getFirstSibling());
}else{
dadItem.setFirstChild(null);
}
}else{
TreeItem previousSibling = m_DiagramTree.getPreviousSibling(selectedItem);
if(previousSibling != null){
if(selectedItem.getFirstSibling() != null)
previousSibling.setFirstSibling(selectedItem.getFirstSibling());
else
previousSibling.setFirstSibling(null);
}
}
XShape xDadShape = selectedItem.getDad().getRectangleShape();