Changeset 15099


Ignore:
Timestamp:
03/15/10 18:40:27 (2 years ago)
Author:
anp
Message:

compil builder : création des SS limitée aux models dont le owner est le rootModel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Jav_AppBuilder/src/com/scenari/m/builder/gen/HModelGenerator.java

    r14884 r15099  
    17781778                        wAddDialog((IWADialogExport) vAg.hNewDialog(fRootDialog)); 
    17791779                } 
    1780  
    1781                 xListAllSs(new ArrayList(), new ArrayList(), fRootDialog.hGetAgent()); 
     1780                String vOwnerPath = fRootDialog.hGetAgent().hGetAgentPath(); 
     1781                xListAllSs(new ArrayList(), new ArrayList(), fRootDialog.hGetAgent(), vOwnerPath); 
    17821782 
    17831783                // On traite toutes les pages des SS. 
     
    17981798         * @throws Exception 
    17991799         */ 
    1800         protected void xListAllSs(List pAnalyzedModels, List pExportedModels, IWAgent pModelAgent) throws Exception { 
     1800        protected void xListAllSs(List pAnalyzedModels, List pExportedModels, IWAgent pModelAgent, String pOwnerPath) throws Exception { 
    18011801                IWAgent vAg = pModelAgent.hGetAgentAssoc("links"); 
     1802                IWAgentComputor vFindOwnerAgent = (IWAgentComputor) fRootDialog.hGoToAgent("@@/findOwnerClass"); 
    18021803                if (vAg == null) return; 
    18031804                Element vListLinks = vAg.hGetElementRoot(); 
     
    18211822                                                                        IWAgent vSsAgent = vListModels[i].hGetAgentAssoc("ss"); 
    18221823                                                                        if (vSsAgent != null && (vSsAgent instanceof IWAgentExport) && vSsAgent.hIsActif(fRootDialog)) { 
    1823                                                                                 wAddDialog((IWADialogExport) vSsAgent.hNewDialog(fRootDialog)); 
     1824                                                                                if (vFindOwnerAgent == null || pOwnerPath == null || (vFindOwnerAgent.computeAsString(fRootDialog, vListModels[i].hGetCode()).equals(pOwnerPath))) { 
     1825                                                                                        wAddDialog((IWADialogExport) vSsAgent.hNewDialog(fRootDialog)); 
     1826                                                                                } 
    18241827                                                                        } 
    18251828                                                                } 
     
    18281831                                                                pAnalyzedModels.add(vListModels[i]); 
    18291832                                                                // On parcourt les lien de cet item. 
    1830                                                                 xListAllSs(pAnalyzedModels, pExportedModels, vListModels[i]); 
     1833                                                                xListAllSs(pAnalyzedModels, pExportedModels, vListModels[i], pOwnerPath); 
    18311834                                                        } 
    18321835                                                } 
Note: See TracChangeset for help on using the changeset viewer.