gitlab #93
Change-Id: Ib2ef00feadb6cd98bfacecfd3b0e2055c1767114
@CanExecute
public boolean canExecute() {
- return TechTypeTableView.table.getCurrentTable() != null;
+ return TechTypeTableView.table != null &&
+ TechTypeTableView.table.getCurrentTable() != null &&
+ TechTypeTableView.table.getComponentType() != null;
}
@Execute
super.dispose();
}
+ public Resource getComponentType() {
+ return this.componentType;
+ }
+
public void setComponentType(Resource componentType) {
if (Objects.equals(this.componentType, componentType))
return;
public class ValidateTechTypeTableHandler {
@CanExecute
public boolean canExecute() {
- return TechTypeTableView.table.getCurrentTable() != null;
+ return TechTypeTableView.table != null &&
+ TechTypeTableView.table.getCurrentTable() != null &&
+ TechTypeTableView.table.getComponentType() != null;
}
@Execute