Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 81193 invoked from network); 30 Jun 2010 07:39:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Jun 2010 07:39:18 -0000 Received: (qmail 57603 invoked by uid 500); 30 Jun 2010 07:39:18 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 57463 invoked by uid 500); 30 Jun 2010 07:39:15 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 57452 invoked by uid 99); 30 Jun 2010 07:39:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jun 2010 07:39:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jun 2010 07:39:11 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5U7coHF010459 for ; Wed, 30 Jun 2010 07:38:50 GMT Message-ID: <25743853.129041277883530163.JavaMail.jira@thor> Date: Wed, 30 Jun 2010 03:38:50 -0400 (EDT) From: "Athoya Hettige Kasun Lakpriya (JIRA)" To: dev@directory.apache.org Subject: [jira] Commented: (DIRSTUDIO-665) I want to specify the package name and class name of the generated java bean class In-Reply-To: <30396542.58611277473071065.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DIRSTUDIO-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12883825#action_12883825 ] Athoya Hettige Kasun Lakpriya commented on DIRSTUDIO-665: --------------------------------------------------------- Now as we expect we can set the default text box values in the Wizard but there is a problem with the order of editing the text box values. Its like this, Once the Wizard is displayed with default values and if a user edits those values in the 1) Class name 2) Package name , order it will only change the Class name but not the package name in the generated code. I think this is because in the dialogChanged() method we check it in that order so that if we change package name at last the changes are not going to apply. If we did it in the other way around the case is wise versa. I think we need some kind of a synchronisation here. Any suggestions? code for this is under this link : http://code.google.com/p/dirstudio-ldap-tooling/source/browse/trunk/persistence-tooling/persistence-ui/src/main/java/org/apache/directory/studio/persistence/view/wizards/NewPersistenceCodeWizardPage.java > I want to specify the package name and class name of the generated java bean class > ---------------------------------------------------------------------------------- > > Key: DIRSTUDIO-665 > URL: https://issues.apache.org/jira/browse/DIRSTUDIO-665 > Project: Directory Studio > Issue Type: Improvement > Components: studio-persistence-tooling > Reporter: Stefan Seelmann > Assignee: Athoya Hettige Kasun Lakpriya > Attachments: DIRSTUDIO-665.png > > > The current implemention automatically uses the name of the structural object class as java class name and automatically uses the default package. > I want to be able to specify the class name and package name of the class in a nice UI. There should be two text fields, one for the class name and one for the package name. > The default class name should be the name of the structural object class with uppercased first charcter. > The default package name should be constructed from the parent DN's values. For example if the DN of the entry is "cn=foobar,ou=sales,dc=example,dc=com" then the default package name should be "com.example.sales" > I think it makes sense to use a JFace wizard for this and put the new UI widgets to the first wizard page. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.