[forge-issues] [JBoss JIRA] (FORGE-920) Enhancements for JPA setup + new entity

George Gastaldi (JIRA) jira-events at lists.jboss.org
Tue May 28 10:54:06 EDT 2013


George Gastaldi created FORGE-920:
-------------------------------------

             Summary: Enhancements for JPA setup + new entity
                 Key: FORGE-920
                 URL: https://issues.jboss.org/browse/FORGE-920
             Project: Forge
          Issue Type: Enhancement
            Reporter: George Gastaldi
            Assignee: George Gastaldi


{quote}
<lincolnthree> the command should create a completely valid (with package declaration) java class, but it should be created directly in the target folder
...
<lincolnthree> gastaldi: precisely, but if you are working on a project, does it default the value of targetDir to the full path of where the source will be created?
<lincolnthree> e.g: src/main/java/org/example/
<gastaldi> it should be
<lincolnthree> ok trying
<lincolnthree> 1 sec
<lincolnthree> it doesn't
<gastaldi> it defaults to the selection you made before running the Wizard 
<gastaldi> no ? 
<gastaldi> let me see
<lincolnthree> it defaults to the selection, yes
<lincolnthree> but if you are selected in a project
<lincolnthree> it should use the FULL path to the correct location of the class
<lincolnthree> using the project JavaSourceFacet to get the proper location
...
<lincolnthree> just use context.getInitialSelection() to find the nearest project in the hierarchy
<lincolnthree> also, make sure the command is disabled in the menu isEnabled() == false if no project is found
<lincolnthree> i think that will be enough for now
{quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the forge-issues mailing list