private void updateFieldTemplateEnablement() { // Get the splash info if any ISplashInfo info = getSplashInfo(); // Enable section under the following conditions: // (1) Product ID is defined // (2) Progress geometry is NOT defined // (3) Progress geometry is defined and splash handler type is defined if ((PDETextHelper.isDefined(getProduct().getProductId()) == false) || ((info.isDefinedGeometry() == true) && (info.isDefinedSplashHandlerType() == false))) { fFieldTemplateCombo.setEnabled(false); } else { fFieldTemplateCombo.setEnabled(true); } }
private void updateFieldProgressEnablement() { // Get the splash info if any ISplashInfo info = getSplashInfo(); // Enable section under the following conditions: // (1) Product ID is defined // (2) Progress geometry is defined // (3) Splash handler type is NOT defined if ((PDETextHelper.isDefined(getProduct().getProductId()) == false) || ((info.isDefinedGeometry() == false) && (info.isDefinedSplashHandlerType() == true))) { fAddBarButton.setEnabled(false); fAddMessageButton.setEnabled(false); updateFieldProgressBarEnablement(false); updateFieldProgressMessageEnablement(false); } else { fAddBarButton.setEnabled(isEditable()); fAddMessageButton.setEnabled(isEditable()); updateFieldProgressBarEnablement(isEditable()); updateFieldProgressMessageEnablement(isEditable()); } }