From: <de...@us...> - 2008-09-02 21:48:31
|
Revision: 3864 http://fudaa.svn.sourceforge.net/fudaa/?rev=3864&view=rev Author: deniger Date: 2008-09-02 21:48:34 +0000 (Tue, 02 Sep 2008) Log Message: ----------- Modified Paths: -------------- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionChooseAndCreateCalque.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionController.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutFille.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutPanelController.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostProjet.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostVisuPanel.java Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionChooseAndCreateCalque.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionChooseAndCreateCalque.java 2008-09-02 16:29:18 UTC (rev 3863) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionChooseAndCreateCalque.java 2008-09-02 21:48:34 UTC (rev 3864) @@ -7,7 +7,7 @@ import org.fudaa.ebli.commun.EbliActionSimple; import org.fudaa.ebli.ressource.EbliResource; import org.fudaa.ebli.visuallibrary.EbliNode; -import org.fudaa.ebli.visuallibrary.calque.EbliWidgetCalqueLegende; +import org.fudaa.ebli.visuallibrary.calque.CalqueLegendeWidgetAdapter; import com.memoire.bu.BuDialogChoice; import com.memoire.bu.BuDialogError; @@ -91,12 +91,12 @@ .getSource(indiceSOURCESelect)); EbliNode node = projet_.filleLayout_.controller_.addCalque("Calque principal", pnVisu.getLocation(), pnVisu .getPreferredSize(), - pnVisu, new EbliWidgetCalqueLegende(projet_.filleLayout_.getScene(), pnVisu + pnVisu, new CalqueLegendeWidgetAdapter(projet_.filleLayout_.getScene(), pnVisu .getArbreCalqueModel())); // -- ajout de l INFO de la source utilis\xE9e --// - node.getCreator().getWidget().getController_().setDescription_("Source: " + values[indiceSOURCESelect]); + node.getCreator().getWidget().getController_().setDescription("Source: " + values[indiceSOURCESelect]); } Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionController.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionController.java 2008-09-02 16:29:18 UTC (rev 3863) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostActionController.java 2008-09-02 21:48:34 UTC (rev 3864) @@ -33,7 +33,7 @@ */ public class TrPostActionController extends FSigVisuPanelController { - Set<String> useAsPalette = new HashSet<String>(Arrays.asList("CONFIGURE")); + Set<String> useAsPalette = new HashSet<String>(Arrays.asList("CONFIGURE","CHANGE_REFERENCE")); /** * Contient chaque palette enlevee sous la forme l'actionCommand-> l'action Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutFille.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutFille.java 2008-09-02 16:29:18 UTC (rev 3863) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutFille.java 2008-09-02 21:48:34 UTC (rev 3864) @@ -20,6 +20,7 @@ import org.fudaa.ctulu.CtuluUndoRedoInterface; import org.fudaa.ctulu.gui.CtuluFilleWithComponent; import org.fudaa.ebli.calque.BArbreCalque; +import org.fudaa.ebli.calque.BCalquePaletteInfo; import org.fudaa.ebli.calque.ZEbliCalquesPanel; import org.fudaa.ebli.calque.action.EbliCalqueActionTimeChooser; import org.fudaa.ebli.calque.action.EbliCalqueActionVariableChooser; @@ -39,7 +40,7 @@ import org.fudaa.ebli.visuallibrary.EbliScene; import org.fudaa.ebli.visuallibrary.actions.EbliWidgetActionConfigure; import org.fudaa.ebli.visuallibrary.actions.EbliWidgetEditCreator; -import org.fudaa.ebli.visuallibrary.calque.EbliWidgetCalqueLegende; +import org.fudaa.ebli.visuallibrary.calque.CalqueLegendeWidgetAdapter; import org.fudaa.ebli.visuallibrary.calque.EbliWidgetCreatorVueCalque; import org.fudaa.ebli.visuallibrary.graphe.EbliWidgetCreatorGraphe; import org.fudaa.fudaa.tr.common.TrLib; @@ -92,7 +93,7 @@ /** * Scroll qui contient le tree a droite. Ce panel est modifi\xE9 des que l on change de type d elements. */ - JScrollPane panelTreeModifiable_; + JComponent panelTreeModifiable_; /** * palette d infos pour le calque associe. */ @@ -106,7 +107,7 @@ * bouton qui permet de masquer/afficher le tree */ JButton toggleTree_; - + TrPostProjet projet_; /** @@ -115,7 +116,7 @@ public TrPostLayoutFille(TrPostProjet _projet) { super(); setTitle(TrResource.getS("vue 2D")); - + projet_ = _projet; // creation de la scene EBLI controller_ = new TrPostLayoutPanelController(new TrPostScene(), _projet); @@ -146,9 +147,8 @@ * java.awt.Dimension, org.fudaa.ebli.calque.ZEbliCalquesPanel) */ public EbliNode addCalque(String _title, Point _preferredLocation, Dimension _preferedDimension, - TrPostVisuPanel _calque, EbliWidgetCalqueLegende _legende) { - - + TrPostVisuPanel _calque, CalqueLegendeWidgetAdapter _legende) { + return controller_.addCalque(_title, _preferredLocation, _preferedDimension, _calque, _legende); } @@ -182,12 +182,11 @@ selector.add(projet_.impl_.getMainPanel().getScrollDesktop_().getCorner(JScrollPane.LOWER_RIGHT_CORNER)); selector.add(toggle); projet_.impl_.getMainPanel().getScrollDesktop_().setCorner(JScrollPane.LOWER_RIGHT_CORNER, toggle);// selector - // ) - // ; - - + // ) + // ; + JPanel over = new JPanel(new BorderLayout()); - // over.add(toggle, BorderLayout.NORTH); + // over.add(toggle, BorderLayout.NORTH); over.add(pane, BorderLayout.CENTER); pane.add(getScene().createSatelliteView()); right.add(over, BorderLayout.NORTH); @@ -205,36 +204,33 @@ // pane.add(panelTreeModifiable_); // right.add(conteneurTree_, BorderLayout.CENTER); - toggleTree_ = new JButton("Arbre"); toggleTree_.setText("Composants"); panelTreeModifiable_ = new JScrollPane(controller_.createTree()); // right.add(panelTreeModifiable_, BorderLayout.CENTER); conteneurTree_ = new JPanel(new BorderLayout()); - // conteneurTree_.add(toggleTree_, BorderLayout.NORTH); + // conteneurTree_.add(toggleTree_, BorderLayout.NORTH); conteneurTree_.add(panelTreeModifiable_, BorderLayout.CENTER); - + right.add(conteneurTree_, BorderLayout.CENTER); - - // -- ajout du bouton qui permet de g\xE9rer tous les resultats - BuButton boutonGestionMultiSrc = new BuButton("Gestion des projets"); - - boutonGestionMultiSrc.addActionListener(new ActionListener() { - - public void actionPerformed(ActionEvent e) { - // -- affichage de la fenetre de gestion multi projet --// - if (!projet_.filleProjetctManager_.isVisible()) - projet_.impl_.addInternalFrame(projet_.filleProjetctManager_); - - // projet_.filleProjetctManager_.setSize(500, 250); - - } - - }); - over.add(boutonGestionMultiSrc, BorderLayout.SOUTH); + // TODO a enlever doit etre dans le menu Post + // BuButton boutonGestionMultiSrc = new BuButton("Gestion des projets"); + // + // boutonGestionMultiSrc.addActionListener(new ActionListener() { + // + // public void actionPerformed(ActionEvent e) { + // // -- affichage de la fenetre de gestion multi projet --// + // if (!projet_.filleProjetctManager_.isVisible()) projet_.impl_.addInternalFrame(projet_.filleProjetctManager_); + // + // // projet_.filleProjetctManager_.setSize(500, 250); + // + // } + // + // }); + // over.add(boutonGestionMultiSrc, BorderLayout.SOUTH); // --verification qu il n existe pas de composant sur la scene auquel cas, // selection automatique pour modification --// @@ -244,10 +240,7 @@ getScene().refresh(); } } - - - - + return right; } @@ -354,7 +347,7 @@ } public void duplicate() { - JOptionPane.showMessageDialog(null, "duplicate()"); + throw new IllegalAccessError("not supported"); } public void paste() { @@ -444,7 +437,7 @@ } EbliNode node = (EbliNode) newSelection.iterator().next(); - // TODO a gerer de maniere Generique + // FIXME a gerer de maniere Generique: ce sont les widget qui doivent donner toutes ces infos // 3 cas pour le moment: graphe ou calque ou rien if (!node.hasWidget()) return; @@ -507,36 +500,27 @@ * @param calque */ private void changeTreeCalque(ZEbliCalquesPanel _calque) { - + // FIXME ne doit pas recree \xE0 chaque fois: porb de listener... conteneurTree_.remove(panelTreeModifiable_); // JComponent component = EbliWidgetEditCreator.createView(new // BArbreCalque(_calque.getArbreCalqueModel()), // EbliResource.EBLI.getToolIcon("arbre"), "Calques", false); - //TODO dangereux car chaque arbre s'enregistre en tant que listener du calque et il ne d\xE9sabonne jamais. - panelTreeModifiable_ = new JScrollPane(new BArbreCalque(_calque.getArbreCalqueModel())); + // FIXME dangereux car chaque arbre s'enregistre en tant que listener du calque et il ne d\xE9sabonne jamais. + panelTreeModifiable_ = new JPanel(new BorderLayout()); + // FIXME DANGEREUX: le barbecalque s'enregistre en tant que listener du model a chaque fois !!!!!!! + panelTreeModifiable_.add(new BArbreCalque(_calque.getArbreCalqueModel())); // panelTreeModifiable_ = new JScrollPane(component); this.toggleTree_.setText("Calques"); - + + BCalquePaletteInfo info = new BCalquePaletteInfo(_calque.getArbreCalqueModel()); + info.setAvailable(true); + panelTreeModifiable_.add(info, BorderLayout.NORTH); conteneurTree_.add(panelTreeModifiable_, BorderLayout.CENTER); - // conteneurTree_.add(, BorderLayout.SOUTH); - - - // -- ajout de la toolBar d'infos au sud --// - TrPostActionController controller = (TrPostActionController) _calque.getController(); - EbliActionPaletteAbstract pal = controller.getPaletteAction("INFOS"); - if (pal != null) { - pal.updateBeforeShow(); - pal.setSelected(true); - palette_ = pal.buildContentPane(); - conteneurTree_.add(palette_, BorderLayout.SOUTH); - } - - // mise a jour du panel conteneurTree_.validate(); - + panelTreeModifiable_.revalidate(); } @@ -548,8 +532,7 @@ private void changeTreeGraphe(EGGraphe _graphe) { conteneurTree_.remove(panelTreeModifiable_); - if (palette_ != null) - conteneurTree_.remove(palette_); + if (palette_ != null) conteneurTree_.remove(palette_); // JComponent component = EbliWidgetEditCreator.createView(new // JTree((EGGrapheTreeModel) _graphe.getModel()), // EbliResource.EBLI.getToolIcon("arbre"), "Courbes", false); @@ -577,9 +560,8 @@ */ private void changeTreeScene() { conteneurTree_.remove(panelTreeModifiable_); - if (palette_ != null) - conteneurTree_.remove(palette_); - JComponent component = EbliWidgetEditCreator.createView(controller_.createTree(), EbliResource.EBLI + if (palette_ != null) conteneurTree_.remove(palette_); + JComponent component = EbliWidgetEditCreator.createView(controller_.createTree(), EbliResource.EBLI .getToolIcon("arbre"), "Composants", false); panelTreeModifiable_ = new JScrollPane(controller_.createTree()); @@ -610,8 +592,6 @@ toolBarModifiable_.addSeparator(); } else { toolBarModifiable_.add(object.buildToolButton(EbliComponentFactory.INSTANCE)); - - } } @@ -622,47 +602,43 @@ menuModifiable_.add(specificMenus[i]); } - // -- ajout des comboBox des variables --// - EbliCalqueActionVariableChooser chooser = new EbliCalqueActionVariableChooser(_calque.getArbreCalqueModel()); - // obligatoire pour creer le BselecteurList - chooser.buildContentPane(); - chooser.updateBeforeShow(); - BSelecteurList listselector = (BSelecteurList) chooser.getPalette_(); BSelecteurListComboBox combo = new BSelecteurListComboBox(); - combo.setPalettePanelTarget(listselector.getTarget_()); - combo.setMaximumSize(combo.getPreferredSize()); + // pour mettre \xE0 jour la combo d\xE8s que la s\xE9lection de l'arbre change + _calque.getArbreCalqueModel().getTreeSelectionModel().addTreeSelectionListener(combo); + combo.setPalettePanelTarget(_calque.getArbreCalqueModel().getSelectedCalque()); + // combo.setPalettePanelTarget(listselector.getTarget()); + combo.setMinimumSize(combo.getPreferredSize()); + combo.setMaximumSize(combo.getPreferredSize()); // ajout combobox - toolBarModifiable_.add(chooser.buildToolButton(EbliComponentFactory.INSTANCE)); - // combo.setToolTipText(); toolBarModifiable_.add(combo); - - - - - EbliCalqueActionTimeChooser chooserT = new EbliCalqueActionTimeChooser(_calque.getArbreCalqueModel()); - // obligatoire pour creer le BselecteurList - chooserT.buildContentPane(); + + EbliCalqueActionTimeChooser chooserT = new EbliCalqueActionTimeChooser(_calque.getArbreCalqueModel() + .getTreeSelectionModel(), true); + // pour activer l'action + chooserT.setSelected(true); + // // obligatoire pour creer le BselecteurList + // listselector = (BSelecteurList) chooserT.getPalette_(); + combo = (BSelecteurListComboBox) chooserT.buildContentPane(); chooserT.updateBeforeShow(); - listselector = (BSelecteurList) chooserT.getPalette_(); - combo = new BSelecteurListComboBox(); - combo.setPalettePanelTarget(listselector.getTarget_()); - combo.setMaximumSize(combo.getPreferredSize()); + // _calque.getArbreCalqueModel().getTreeSelectionModel().addTreeSelectionListener(combo); + // combo.setPalettePanelTarget(listselector.getTarget_()); + combo.setMaximumSize(combo.getPreferredSize()); + combo.setMinimumSize(combo.getPreferredSize()); // ajout combobox - toolBarModifiable_.add(chooserT.buildToolButton(EbliComponentFactory.INSTANCE)); + // toolBarModifiable_.add(chooserT.buildToolButton(EbliComponentFactory.INSTANCE)); // combo.setToolTipText(); toolBarModifiable_.add(combo); - + + // ajout bouton toolbar + // -- ajotu d un bouton pour la paletet des legendes --// // toolBarModifiable_.add(new // PaletteEditAction(_calque.getArbreCalqueModel() // .getTreeSelectionModel())); - - - - + // mise a jour des params toolBarModifiable_.revalidate(); menuModifiable_.revalidate(); @@ -675,7 +651,7 @@ EGFillePanel _graphe = creator.getGraphePanel(); TrPostVisuPanel _calque = (TrPostVisuPanel) creator.getCalquepanelProvenance(); - + // nettoyage de la toolbar toolBarModifiable_.removeAll(); menuModifiable_.removeAll(); @@ -691,25 +667,20 @@ } } - - - // ajout des menus specifiques JMenu menu = new JMenu("Menu graphe"); _graphe.fillSpecificMenu(menu); menuModifiable_.add(menu); - - // -- ajout de l'action qui ajoute un point au graphe --// TrPostCourbeAddPointsAction addPoint = new TrPostCourbeAddPointsAction(projet_.impl_, _graphe.getGraphe(), _calque); toolBarModifiable_.add(addPoint.buildToolButton(EbliComponentFactory.INSTANCE)); menu.add(addPoint); - + TrPostCourbeAddVariableAction addVariable = new TrPostCourbeAddVariableAction(projet_.impl_, _graphe.getGraphe()); toolBarModifiable_.add(addVariable.buildToolButton(EbliComponentFactory.INSTANCE)); menu.add(addVariable); - + // mise a jour des params toolBarModifiable_.revalidate(); menuModifiable_.revalidate(); Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutPanelController.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutPanelController.java 2008-09-02 16:29:18 UTC (rev 3863) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostLayoutPanelController.java 2008-09-02 21:48:34 UTC (rev 3864) @@ -15,7 +15,6 @@ import javax.swing.ListSelectionModel; import org.fudaa.ctulu.CtuluCommandManager; -import org.fudaa.ebli.calque.BArbreCalqueModel; import org.fudaa.ebli.calque.BCalqueLegende; import org.fudaa.ebli.calque.ZEbliCalquesPanel; import org.fudaa.ebli.commun.EbliActionAbstract; @@ -42,7 +41,7 @@ import org.fudaa.ebli.visuallibrary.actions.EbliWidgetActionImageChooser; import org.fudaa.ebli.visuallibrary.actions.EbliWidgetActionRetaillageHorizontal; import org.fudaa.ebli.visuallibrary.actions.EbliWidgetActionRetaillageVertical; -import org.fudaa.ebli.visuallibrary.calque.EbliWidgetCalqueLegende; +import org.fudaa.ebli.visuallibrary.calque.CalqueLegendeWidgetAdapter; import org.fudaa.ebli.visuallibrary.calque.EbliWidgetControllerCalque; import org.fudaa.ebli.visuallibrary.calque.EbliWidgetCreatorLegende; import org.fudaa.ebli.visuallibrary.calque.EbliWidgetCreatorVueCalque; @@ -112,7 +111,7 @@ * @return le node cree */ public EbliNode addCalque(String title, Point preferredLocation, Dimension preferedDimension, TrPostVisuPanel calque, - EbliWidgetCalqueLegende _legende) { + CalqueLegendeWidgetAdapter _legende) { // TODO a eviter // -- enregistrement du calque principal --// if (calquePrincipal == null) @@ -246,11 +245,11 @@ * Methode d ajout d'un calque legende. * @return */ - public EbliNode addCalqueLegende(BCalqueLegende legende, BArbreCalqueModel model) { + public EbliNode addCalqueLegende(BCalqueLegende legende) { // -- ajout du rectangle --// final EbliNodeDefault nodeLegende = new EbliNodeDefault(); nodeLegende.setTitle("Legende calque"); - nodeLegende.setCreator(new EbliWidgetCreatorLegende(legende.getLegendePanel(0), model)); + nodeLegende.setCreator(new EbliWidgetCreatorLegende(legende.getLegendePanel(0))); nodeLegende.setPreferedSize(new Dimension(200, 100)); nodeLegende.setPreferedLocation(new Point(350, 125)); // ajout du node au layout Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostProjet.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostProjet.java 2008-09-02 16:29:18 UTC (rev 3863) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostProjet.java 2008-09-02 21:48:34 UTC (rev 3864) @@ -71,7 +71,7 @@ import org.fudaa.ebli.visuallibrary.EbliNode; import org.fudaa.ebli.visuallibrary.EbliNodeDefault; import org.fudaa.ebli.visuallibrary.EbliScene; -import org.fudaa.ebli.visuallibrary.calque.EbliWidgetCalqueLegende; +import org.fudaa.ebli.visuallibrary.calque.CalqueLegendeWidgetAdapter; import org.fudaa.ebli.visuallibrary.graphe.EbliWidgetCreatorGraphe; import org.fudaa.fudaa.commun.FudaaLib; import org.fudaa.fudaa.commun.courbe.FudaaCourbeTimeListModel; @@ -816,7 +816,7 @@ // -- on ajoute le panel de visu comm widget calque au layout --// compFille.addCalque(MvResource.getS("Maillage initial"), new Point(250, 170), new Dimension(400, 200), pnVisu, - new EbliWidgetCalqueLegende(compFille.getScene(), pnVisu.getArbreCalqueModel())); + new CalqueLegendeWidgetAdapter(compFille.getScene(), pnVisu.getArbreCalqueModel())); // test si il faut ajouter le calque if (_isInitGridDisplay) { @@ -955,7 +955,7 @@ } - protected TrPostVisuPanel buildVisuPanel(EbliScene _scene, EbliWidgetCalqueLegende legende) { + protected TrPostVisuPanel buildVisuPanel(EbliScene _scene, CalqueLegendeWidgetAdapter legende) { return new TrPostVisuPanel(impl_, this, legende); } @@ -1147,10 +1147,10 @@ filleLayout_ = new TrPostLayoutFille(TrPostProjet.this); // -- creation d une instance de la legende du calque --// - EbliWidgetCalqueLegende legendeCalque = new EbliWidgetCalqueLegende(filleLayout_.getScene(), null); + CalqueLegendeWidgetAdapter legendeCalque = new CalqueLegendeWidgetAdapter(filleLayout_.getScene(), null); final TrPostVisuPanel pnVisu = buildVisuPanel(filleLayout_.getScene(), legendeCalque); - legendeCalque.setModelTreeCalque(pnVisu.getArbreCalqueModel()); +// legendeCalque.setModelTreeCalque(pnVisu.getArbreCalqueModel()); // fille_ = new TrPostFille(pnVisu); // --creation de l internalframe layout --// @@ -1160,7 +1160,7 @@ EbliNode node = filleLayout_.addCalque("Calque principal", pnVisu.getLocation(), pnVisu.getPreferredSize(), pnVisu, legendeCalque); // -- ajout de l INFO de la source utilis\xE9e --// - node.getCreator().getWidget().getController_().setDescription_(formatInfoSource(getSource(0))); + node.getCreator().getWidget().getController_().setDescription(formatInfoSource(getSource(0))); // -- decoration de la fille layout --// decoreFilleVisu(); Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostVisuPanel.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostVisuPanel.java 2008-09-02 16:29:18 UTC (rev 3863) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostVisuPanel.java 2008-09-02 21:48:34 UTC (rev 3864) @@ -44,7 +44,7 @@ import org.fudaa.ebli.commun.EbliActionSimple; import org.fudaa.ebli.commun.EbliLib; import org.fudaa.ebli.visuallibrary.EbliScene; -import org.fudaa.ebli.visuallibrary.calque.EbliWidgetCalqueLegende; +import org.fudaa.ebli.visuallibrary.calque.CalqueLegendeWidgetAdapter; import org.fudaa.fudaa.commun.impl.FudaaCommonImplementation; import org.fudaa.fudaa.meshviewer.MvSelectionNodeOrEltData; import org.fudaa.fudaa.meshviewer.export.MvExportFactory; @@ -541,9 +541,9 @@ public TrPostVisuPanel duplicate(Map _options) { - EbliWidgetCalqueLegende legendeCalque=new EbliWidgetCalqueLegende((EbliScene) _options.get("scene"), null); + CalqueLegendeWidgetAdapter legendeCalque=new CalqueLegendeWidgetAdapter((EbliScene) _options.get("scene"), null); final TrPostVisuPanel duplic = new TrPostVisuPanel(this.getImpl(), this.getProjet(), legendeCalque); - legendeCalque.setModelTreeCalque(duplic.getArbreCalqueModel()); +// legendeCalque.setModelTreeCalque(duplic.getArbreCalqueModel()); System.err.println(duplic.getCqLegend()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |