Return-Path: Mailing-List: contact ojb-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ojb-dev@jakarta.apache.org Received: (qmail 14885 invoked by uid 97); 24 Dec 2002 15:50:24 -0000 Received: (qmail 14881 invoked by uid 98); 24 Dec 2002 15:50:24 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Received: (qmail 14862 invoked from network); 24 Dec 2002 15:50:22 -0000 Received: from daedalus.apache.org (HELO apache.org) (63.251.56.142) by nagoya.betaversion.org with SMTP; 24 Dec 2002 15:50:22 -0000 Received: (qmail 58665 invoked by uid 500); 24 Dec 2002 15:49:08 -0000 Received: (qmail 58658 invoked from network); 24 Dec 2002 15:49:08 -0000 Received: from icarus.apache.org (63.251.56.143) by daedalus.apache.org with SMTP; 24 Dec 2002 15:49:08 -0000 Received: (qmail 25834 invoked by uid 1510); 24 Dec 2002 15:49:07 -0000 Date: 24 Dec 2002 15:49:07 -0000 Message-ID: <20021224154907.25833.qmail@icarus.apache.org> From: arminw@apache.org To: jakarta-ojb-cvs@apache.org Subject: cvs commit: jakarta-ojb/src/java/org/apache/ojb/tools/mapping/reversedb2/ojbmetatreemodel/actions ActionAddClassDescriptor.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 * . * - */ + */ /** - * @author Florian Bruckner + * @author Florian Bruckner * @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); }