Changeset 15100
- Timestamp:
- 03/15/10 18:40:45 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7.x/Jav_Builder/com/scenari/m/builder/gen/HModelGenerator.java
r14372 r15100 1749 1749 wAddDialog((IWADialogExport) vAg.hNewDialog(fRootDialog)); 1750 1750 } 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); 1753 1754 1754 1755 // On traite toutes les pages des SS. … … 1769 1770 * @throws Exception 1770 1771 */ 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 { 1772 1773 IWAgent vAg = pModelAgent.hGetAgentAssoc("links"); 1774 IWAgentComputor vFindOwnerAgent = (IWAgentComputor) fRootDialog.hGoToAgent("@@/findOwnerClass"); 1773 1775 if (vAg == null) return; 1774 1776 Element vListLinks = vAg.hGetElementRoot(); … … 1792 1794 IWAgent vSsAgent = vListModels[i].hGetAgentAssoc("ss"); 1793 1795 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 } 1795 1799 } 1796 1800 } … … 1799 1803 pAnalyzedModels.add(vListModels[i]); 1800 1804 // On parcourt les lien de cet item. 1801 xListAllSs(pAnalyzedModels, pExportedModels, vListModels[i] );1805 xListAllSs(pAnalyzedModels, pExportedModels, vListModels[i], pOwnerPath); 1802 1806 } 1803 1807 }
Note: See TracChangeset
for help on using the changeset viewer.