Changeset 15099
- Timestamp:
- 03/15/10 18:40:27 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Jav_AppBuilder/src/com/scenari/m/builder/gen/HModelGenerator.java
r14884 r15099 1778 1778 wAddDialog((IWADialogExport) vAg.hNewDialog(fRootDialog)); 1779 1779 } 1780 1781 xListAllSs(new ArrayList(), new ArrayList(), fRootDialog.hGetAgent() );1780 String vOwnerPath = fRootDialog.hGetAgent().hGetAgentPath(); 1781 xListAllSs(new ArrayList(), new ArrayList(), fRootDialog.hGetAgent(), vOwnerPath); 1782 1782 1783 1783 // On traite toutes les pages des SS. … … 1798 1798 * @throws Exception 1799 1799 */ 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 { 1801 1801 IWAgent vAg = pModelAgent.hGetAgentAssoc("links"); 1802 IWAgentComputor vFindOwnerAgent = (IWAgentComputor) fRootDialog.hGoToAgent("@@/findOwnerClass"); 1802 1803 if (vAg == null) return; 1803 1804 Element vListLinks = vAg.hGetElementRoot(); … … 1821 1822 IWAgent vSsAgent = vListModels[i].hGetAgentAssoc("ss"); 1822 1823 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 } 1824 1827 } 1825 1828 } … … 1828 1831 pAnalyzedModels.add(vListModels[i]); 1829 1832 // On parcourt les lien de cet item. 1830 xListAllSs(pAnalyzedModels, pExportedModels, vListModels[i] );1833 xListAllSs(pAnalyzedModels, pExportedModels, vListModels[i], pOwnerPath); 1831 1834 } 1832 1835 }
Note: See TracChangeset
for help on using the changeset viewer.