| Line 1... |
Line 1... |
| 1 |
package in.shop2020.ui.util;
|
1 |
package in.shop2020.ui.util;
|
| 2 |
|
2 |
|
| - |
|
3 |
import in.shop2020.metamodel.definitions.Catalog;
|
| 3 |
import in.shop2020.metamodel.definitions.Category;
|
4 |
import in.shop2020.metamodel.definitions.Category;
|
| 4 |
import in.shop2020.metamodel.definitions.DefinitionsContainer;
|
- |
|
| 5 |
import in.shop2020.model.v1.catalog.InventoryService.Client;
|
5 |
import in.shop2020.model.v1.catalog.InventoryService.Client;
|
| 6 |
import in.shop2020.model.v1.catalog.InventoryServiceException;
|
6 |
import in.shop2020.model.v1.catalog.InventoryServiceException;
|
| 7 |
import in.shop2020.model.v1.catalog.Item;
|
7 |
import in.shop2020.model.v1.catalog.Item;
|
| 8 |
import in.shop2020.model.v1.catalog.Source;
|
8 |
import in.shop2020.model.v1.catalog.Source;
|
| 9 |
import in.shop2020.model.v1.catalog.SourceItemPricing;
|
9 |
import in.shop2020.model.v1.catalog.SourceItemPricing;
|
| Line 159... |
Line 159... |
| 159 |
filenames.add("SlideGuide");
|
159 |
filenames.add("SlideGuide");
|
| 160 |
filenames.add("ProductPropertiesSnippet");
|
160 |
filenames.add("ProductPropertiesSnippet");
|
| 161 |
filenames.add("MyResearchSnippet");
|
161 |
filenames.add("MyResearchSnippet");
|
| 162 |
filenames.add("AfterSales");
|
162 |
filenames.add("AfterSales");
|
| 163 |
|
163 |
|
| 164 |
Category category = new DefinitionsContainer().getCategory(items.get(0).getCategory());
|
164 |
Category category = Catalog.getInstance().getDefinitionsContainer().getCategory(items.get(0).getCategory());
|
| 165 |
if(category!=null){
|
165 |
if(category!=null){
|
| 166 |
Category parentCategory = category.getParentCategory();
|
166 |
Category parentCategory = category.getParentCategory();
|
| 167 |
|
167 |
|
| 168 |
if(parentCategory.getID() == Utils.MOBILE_PHONES_CATAGORY) {
|
168 |
if(parentCategory.getID() == Utils.MOBILE_PHONES_CATAGORY) {
|
| 169 |
filenames.add("PhonesIOwnSnippet");
|
169 |
filenames.add("PhonesIOwnSnippet");
|