public void setVMList() {
table.removeAll();
+ createVM.removeAll();
for (ProfileButton pButton : profileButtonList) {
if (pButton.getProfile() == null) {
}
}
});
+ resetButton.setToolTipText("reset emulator");
exportButton = new ImageButton(comp, SWT.PUSH);
exportButton.setBackground(null);
}
}
});
+ exportButton.setToolTipText("create new base image");
deleteButton = new ImageButton(comp, SWT.PUSH);
deleteButton.setBackground(null);
}
}
});
+ deleteButton.setToolTipText("delete emulator");
modifyButton = new ImageButton(comp, SWT.PUSH);
modifyButton.setBackground(null);
}
}
});
+ modifyButton.setToolTipText("modify emulator");
launchButton = new ImageButton(comp, SWT.PUSH);
launchButton.setBackground(null);
}
}
});
+ launchButton.setToolTipText("launch emulator");
resetButton.setEnabled(false);
exportButton.setEnabled(false);
if (items != null) {
items.remove(index);
}
+ if (selectedIndex == index) {
+ deselect();
+ }
}
public void removeAll() {
if (items != null) {
items.clear();
}
- selectedIndex = -1;
- selectedItem = null;
if (!popup.isDispose()) {
popup.dispose();
}
+
+ deselect();
+ }
+
+ private void deselect() {
+ selectedIndex = -1;
+ selectedItem = null;
+ redraw();
}
// for CreateVMComboPopup