@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