Changeset 15100


Ignore:
Timestamp:
03/15/10 18:40:45 (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
  • branches/3.7.x/Jav_Builder/com/scenari/m/builder/gen/HModelGenerator.java

    r14372 r15100  
    17491749                        wAddDialog((IWADialogExport) vAg.hNewDialog(fRootDialog)); 
    17501750                } 
    1751  
    1752                 xListAllSs(new ArrayList(), new ArrayList(), fRootDialog.hGetAgent()); 
     1751                 
     1752                String vOwnerPath = fRootDialog.hGetAgent().hGetAgentPath(); 
     1753                xListAllSs(new ArrayList(), new ArrayList(), fRootDialog.hGetAgent(), vOwnerPath); 
    17531754 
    17541755                // On traite toutes les pages des SS. 
     
    17691770         * @throws Exception 
    17701771         */ 
    1771         protected void xListAllSs(List pAnalyzedModels, List pExportedModels, IWAgent pModelAgent) throws Exception { 
     1772        protected void xListAllSs(List pAnalyzedModels, List pExportedModels, IWAgent pModelAgent, String pOwnerPath) throws Exception { 
    17721773                IWAgent vAg = pModelAgent.hGetAgentAssoc("links"); 
     1774                IWAgentComputor vFindOwnerAgent = (IWAgentComputor) fRootDialog.hGoToAgent("@@/findOwnerClass"); 
    17731775                if (vAg == null) return; 
    17741776                Element vListLinks = vAg.hGetElementRoot(); 
     
    17921794                                                                        IWAgent vSsAgent = vListModels[i].hGetAgentAssoc("ss"); 
    17931795                                                                        if (vSsAgent != null && (vSsAgent instanceof IWAgentExport) && vSsAgent.hIsActif(fRootDialog)) { 
    1794                                                                                 wAddDialog((IWADialogExport) vSsAgent.hNewDialog(fRootDialog)); 
     1796                                                                                if (vFindOwnerAgent == null || pOwnerPath == null || (vFindOwnerAgent.computeAsString(fRootDialog, vListModels[i].hGetCode()).equals(pOwnerPath))) { 
     1797                                                                                        wAddDialog((IWADialogExport) vSsAgent.hNewDialog(fRootDialog)); 
     1798                                                                                } 
    17951799                                                                        } 
    17961800                                                                } 
     
    17991803                                                                pAnalyzedModels.add(vListModels[i]); 
    18001804                                                                // On parcourt les lien de cet item. 
    1801                                                                 xListAllSs(pAnalyzedModels, pExportedModels, vListModels[i]); 
     1805                                                                xListAllSs(pAnalyzedModels, pExportedModels, vListModels[i], pOwnerPath); 
    18021806                                                        } 
    18031807                                                } 
Note: See TracChangeset for help on using the changeset viewer.