public void assignNewPriceConfig( AbstractChooseGridPriceConfigWizard wizard) // TODO ProgressMonitor { wizard.getAbstractChooseGridPriceConfigPage().configureProductType(packageProductType); PriceConfigName newName = null; IInnerPriceConfig innerPC = packageProductType.getInnerPriceConfig(); if (innerPC != null) { newName = packageProductType.getInnerPriceConfig().getName(); // Backup it!!! PriceConfigID innerPCID = (PriceConfigID) JDOHelper.getObjectId(innerPC); if (innerPCID != null) { innerPC = retrieveInnerPriceConfigForEditing(innerPCID); packageProductType.setInnerPriceConfig(innerPC); } } if (newName != null) packageProductType.getInnerPriceConfig().getName().copyFrom(newName); if (packageProductType.getInnerPriceConfig() != null) { GridPriceConfig packagePriceConfig = (GridPriceConfig) packageProductType.getPackagePriceConfig(); if (packagePriceConfig != null) packagePriceConfig.adoptParameters(packageProductType.getInnerPriceConfig(), false); } _setPackageProductType(packageProductType); dirtyStateManager.markDirty(); }
public void propertyChange(PropertyChangeEvent evt) { if (logger.isDebugEnabled()) logger.debug( "dimensionValueChangeListener#propertyChange: propertyName=" + evt.getPropertyName()); // $NON-NLS-1$ // if (dirtyStateManager != null && !initalState) // dirtyStateManager.markDirty(); if (priceCalculator != null) priceCalculator.preparePriceCalculation_createPackagedResultPriceConfigs(); if (dirtyStateManager != null) dirtyStateManager.markDirty(); }