User: ko5tik  
  Date: 02/04/16 04:58:35

  Modified:    src/java/xdocletgui/swing/editor TagFamilyEditorPanel.java
  Log:
  tag creation works
  
  Revision  Changes    Path
  1.2       +6 -1      
xdocletgui/src/java/xdocletgui/swing/editor/TagFamilyEditorPanel.java
  
  Index: TagFamilyEditorPanel.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdocletgui/src/java/xdocletgui/swing/editor/TagFamilyEditorPanel.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -w -r1.1 -r1.2
  --- TagFamilyEditorPanel.java 16 Apr 2002 10:38:58 -0000      1.1
  +++ TagFamilyEditorPanel.java 16 Apr 2002 11:58:34 -0000      1.2
  @@ -49,6 +49,7 @@
   import xdocletgui.swing.TagFamilyTreeNode;
   import xdocletgui.swing.TagTreeNode;
   import xdocletgui.swing.TagParameterTreeNode;
  +import xdocletgui.swing.TreeFactoryScratch;
   
   import xjavadoc.XTag;
   import xjavadoc.XDoc;
  @@ -175,7 +176,11 @@
         * create desired tag
         */
        public void create() {
  +             Tag tag = (Tag)_tagChoice.getSelectedItem();
  +             TagTreeNode ttn = TreeFactoryScratch.createTagNode(tag, _xdoc);
   
  +             ((DefaultTreeModel)_tree.getModel()).insertNodeInto(ttn, _node, 
_node.getChildCount());
  +             _tree.setSelectionPath(new TreePath(ttn.getPath()));
        }
   
   
  @@ -192,7 +197,7 @@
                        if (!(tag.isUnique() && _xdoc.hasTag(tag.getName()))) {
                                // add to list
                                _log.debug("added");
  -                             _tagChoice.addItem(tag.getName());
  +                             _tagChoice.addItem(tag);
                        }
                }
        }
  
  
  

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to