ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickda...@apache.org
Subject cvs commit: jakarta-ant/src/antidote/org/apache/tools/ant/gui/command NewElementCmd.java
Date Wed, 11 Apr 2001 20:42:13 GMT
nickdavis    01/04/11 13:42:13

  Modified:    src/antidote/org/apache/tools/ant/gui/command
                        NewElementCmd.java
  Log:
  add support for optional elements
  
  Revision  Changes    Path
  1.3       +4 -2      jakarta-ant/src/antidote/org/apache/tools/ant/gui/command/NewElementCmd.java
  
  Index: NewElementCmd.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/antidote/org/apache/tools/ant/gui/command/NewElementCmd.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- NewElementCmd.java	2001/04/06 15:51:23	1.2
  +++ NewElementCmd.java	2001/04/11 20:42:13	1.3
  @@ -65,7 +65,7 @@
   /**
    * Command for creating a new propertyh.
    * 
  - * @version $Revision: 1.2 $ 
  + * @version $Revision: 1.3 $ 
    * @author Simeon Fitch 
    */
   public class NewElementCmd extends AbstractCommand {
  @@ -124,7 +124,9 @@
               ACSDtdDefinedElement dtde = (ACSDtdDefinedElement) e;
               NewElementDlg dlg = new NewElementDlg(
                   getContext().getParentFrame(), true);
  -            dlg.setList(dtde.getPossibleChildren());
  +            dlg.setLists(
  +                dtde.getPossibleChildren(ACSDocumentType.CORE_ELEMENT),
  +                dtde.getPossibleChildren(ACSDocumentType.OPTIONAL_ELEMENT) );
               dlg.pack();
               WindowUtils.centerWindow(dlg);
               dlg.setTitle("Select the new element type");
  
  
  

Mime
View raw message