You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Stefan Seelmann (JIRA)" <ji...@apache.org> on 2010/06/25 15:37:51 UTC

[jira] Created: (DIRSTUDIO-665) I want to specify the package name and class name of the generated java bean class

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


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.


[jira] Commented: (DIRSTUDIO-665) I want to specify the package name and class name of the generated java bean class

Posted by "Athoya Hettige Kasun Lakpriya (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSTUDIO-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12883068#action_12883068 ] 

Athoya Hettige Kasun Lakpriya commented on DIRSTUDIO-665:
---------------------------------------------------------

Finished the UI part and now working on integrating the LdapEntryAnalyzer code with UI.

> 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.


[jira] Updated: (DIRSTUDIO-665) I want to specify the package name and class name of the generated java bean class

Posted by "Stefan Seelmann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSTUDIO-665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Seelmann updated DIRSTUDIO-665:
--------------------------------------

    Attachment: DIRSTUDIO-665.png

Attached UI mock

> 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
>         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.


[jira] Resolved: (DIRSTUDIO-665) I want to specify the package name and class name of the generated java bean class

Posted by "Kasun Lakpriya (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSTUDIO-665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kasun Lakpriya resolved DIRSTUDIO-665.
--------------------------------------

    Resolution: Fixed

Resolved.

> 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: 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.


[jira] Commented: (DIRSTUDIO-665) I want to specify the package name and class name of the generated java bean class

Posted by "Kasun Lakpriya (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSTUDIO-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12884225#action_12884225 ] 

Kasun Lakpriya commented on DIRSTUDIO-665:
------------------------------------------

Yes Stefan Seelmann, I have missed that one, Thanks.
This Jira issue is RESOLVED now!!!

> 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: 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.


[jira] Commented: (DIRSTUDIO-665) I want to specify the package name and class name of the generated java bean class

Posted by "Stefan Seelmann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSTUDIO-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12883831#action_12883831 ] 

Stefan Seelmann commented on DIRSTUDIO-665:
-------------------------------------------

You need to attach another modify listener to the "packageNameText" widget, in the same way as you already do with the "classNameText" widget.


> 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.


[jira] Assigned: (DIRSTUDIO-665) I want to specify the package name and class name of the generated java bean class

Posted by "Athoya Hettige Kasun Lakpriya (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSTUDIO-665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Athoya Hettige Kasun Lakpriya reassigned DIRSTUDIO-665:
-------------------------------------------------------

    Assignee: Athoya Hettige Kasun Lakpriya

> 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.


[jira] Commented: (DIRSTUDIO-665) I want to specify the package name and class name of the generated java bean class

Posted by "Stefan Seelmann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSTUDIO-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12882619#action_12882619 ] 

Stefan Seelmann commented on DIRSTUDIO-665:
-------------------------------------------

Let me point you to a simple wizard we already have in studio: The "New Schema" wizard

1st, there is a "NewSchemaAction", which run() method creates a "NewSchemaWizard" and opens it in a wizard dialog.
2nd, the "NewSchemaWizard" implements an JFace Wizard and defines only one wizard page.
3rd, the "NewSchemaWizardPage" is an JFace WizardPage and defines the UI elements on it (only a label and a text input field).

The eclispe docu also has a chapter about wizards: http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/dialogs_wizards.htm


> 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
>         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.


[jira] Commented: (DIRSTUDIO-665) I want to specify the package name and class name of the generated java bean class

Posted by "Athoya Hettige Kasun Lakpriya (JIRA)" <ji...@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.