final Book book = spreadsheet.getBook();
if (book == null) {
return;
}
try {
Listbox rangeList;
if (type.equals("add")) {
rangeList = (Listbox) Path
.getComponent("//p1/rangeAddWin/raw_rangeList");
} else if (type.equals("delete")) {
rangeList = (Listbox) Path
.getComponent("//p1/rangeDeleteWin/rdw_rangeList");
} else if (type.equals("choose")) {
rangeList = (Listbox) Path
.getComponent("//p1/rangeChooseWin/rcw_rangeList");
} else {
return;
}
Listitem st = rangeList.getSelectedItem();
Name range;
Rect rect;
if (st != null) {
String rangeName = st.getLabel();
range = book.getName(rangeName);