db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: jakarta-ojb/src/java/org/apache/ojb/tools/mapping/reversedb2/ojbmetatreemodel/actions ActionAddClassDescriptor.java
Date Tue, 24 Dec 2002 15:49:07 GMT
arminw      2002/12/24 07:49:07

  Modified:    src/java/org/apache/ojb/tools/mapping/reversedb2/ojbmetatreemodel/actions
                        ActionAddClassDescriptor.java
  Log:
  update to new metadata handling
  
  Revision  Changes    Path
  1.2       +16 -16    jakarta-ojb/src/java/org/apache/ojb/tools/mapping/reversedb2/ojbmetatreemodel/actions/ActionAddClassDescriptor.java
  
  Index: ActionAddClassDescriptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/tools/mapping/reversedb2/ojbmetatreemodel/actions/ActionAddClassDescriptor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ActionAddClassDescriptor.java	31 Aug 2002 21:19:30 -0000	1.1
  +++ ActionAddClassDescriptor.java	24 Dec 2002 15:49:07 -0000	1.2
  @@ -9,10 +9,10 @@
   
   /*
    * ====================================================================
  - * 
  + *
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 1999 The Apache Software Foundation.  All rights 
  + * Copyright (c) 1999 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -20,7 +20,7 @@
    * are met:
    *
    * 1. Redistributions of source code must retain the above copyright
  - *    notice, this list of conditions and the following disclaimer. 
  + *    notice, this list of conditions and the following disclaimer.
    *
    * 2. Redistributions in binary form must reproduce the above copyright
    *    notice, this list of conditions and the following disclaimer in
  @@ -28,15 +28,15 @@
    *    distribution.
    *
    * 3. The end-user documentation included with the redistribution, if
  - *    any, must include the following acknowlegement:  
  - *       "This product includes software developed by the 
  + *    any, must include the following acknowlegement:
  + *       "This product includes software developed by the
    *        Apache Software Foundation (http://www.apache.org/)."
    *    Alternately, this acknowlegement may appear in the software itself,
    *    if and wherever such third-party acknowlegements normally appear.
    *
    * 4. The names "The Jakarta Project", "Jakarta-Regexp", and "Apache Software
    *    Foundation" must not be used to endorse or promote products derived
  - *    from this software without prior written permission. For written 
  + *    from this software without prior written permission. For written
    *    permission, please contact apache@apache.org.
    *
    * 5. Products derived from this software may not be called "Apache"
  @@ -62,34 +62,34 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    *
  - */ 
  + */
   
   /**
  - * @author <a href="mailto:bfl@florianbruckner.com">Florian Bruckner</a> 
  + * @author <a href="mailto:bfl@florianbruckner.com">Florian Bruckner</a>
    * @version $Id$
    */
   public class ActionAddClassDescriptor extends javax.swing.AbstractAction
  -{    
  +{
       private org.apache.ojb.tools.mapping.reversedb2.ojbmetatreemodel.OjbMetaRootNode rootNode;
  -    /** Creates a new instance of ActionAddClassDescriptor */   
  -    public ActionAddClassDescriptor(org.apache.ojb.tools.mapping.reversedb2.ojbmetatreemodel.OjbMetaRootNode
pRootNode) 
  +    /** Creates a new instance of ActionAddClassDescriptor */
  +    public ActionAddClassDescriptor(org.apache.ojb.tools.mapping.reversedb2.ojbmetatreemodel.OjbMetaRootNode
pRootNode)
       {
           super("Add Class");
           rootNode = pRootNode;
       }
  - 
  +
       /** Invoked when an action occurs.
        *
        */
  -    public void actionPerformed(java.awt.event.ActionEvent e) 
  +    public void actionPerformed(java.awt.event.ActionEvent e)
       {
           System.out.println("Action Command: " + e.getActionCommand());
           System.out.println("Action Params : " + e.paramString());
           System.out.println("Action Source : " + e.getSource());
           System.out.println("Action SrcCls : " + e.getSource().getClass().getName());
  -        org.apache.ojb.broker.metadata.ClassDescriptor cld = 
  +        org.apache.ojb.broker.metadata.ClassDescriptor cld =
               new org.apache.ojb.broker.metadata.ClassDescriptor(rootNode.getRepository());
  -        cld.setClassNameOfObject("New Class");
  +        // cld.setClassNameOfObject("New Class");
           cld.setTableName("New Table");
           rootNode.addClassDescriptor(cld);
       }
  
  
  

Mime
View raw message