* @param tab The Tab holding this DefectView (can be null)
*/
public DefectView(Defect defect, Mode editMode, Tab tab) {
containingTab = tab;
if(containingTab == null) {
containingTab = new DummyTab();
}
// Instantiate the button panel
buttonGroup = new ToolbarGroupView("Create Defect");