| | |
| | | //long e = System.currentTimeMillis(); |
| | | //System.out.println(allContext.length + " 1: " + (e - s)); |
| | | //s = System.currentTimeMillis(); |
| | | List<PLUILayout> contextList = null; |
| | | List<PLUILayout> relatedTypeList = null; |
| | | //List<PLUILayout> contextList = null; |
| | | for (PLUILayout context : allContext) { |
| | | if (contextMap.get(context.plRelatedType) == null) { |
| | | contextList = new ArrayList<PLUILayout>(); |
| | | contextMap.put(context.plRelatedType, contextList); |
| | | relatedTypeList = new ArrayList<>(); |
| | | contextMap.put(context.plRelatedType, relatedTypeList); |
| | | } else { |
| | | contextList = contextMap.get(context.plRelatedType); |
| | | relatedTypeList = contextMap.get(context.plRelatedType); |
| | | } |
| | | contextList.add(context); |
| | | relatedTypeList.add(context); |
| | | //处理btmName+context方式存的数据 |
| | | /*if(contextMap.get(context.plRelatedType + "-" + context.plOId) == null){ |
| | | contextList = new ArrayList<>(); |
| | | contextMap.put(context.plRelatedType + "-" + context.plOId,contextList); |
| | | }else{ |
| | | contextList = contextMap.get(context.plRelatedType + "-" + context.plOId); |
| | | } |
| | | contextList.add(context);*/ |
| | | } |
| | | |
| | | |
| | | //e = System.currentTimeMillis(); |
| | | //System.out.println("2: " + (e - s)); |
| | | //初始化所有的页签 |