Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-920

Enhancements for JPA setup + new entity

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 2.0.0.Alpha5
    • 2.0.0.Alpha4
    • None
    • None

    Description

      <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

      Attachments

        Activity

          People

            rhn-support-ggastald George Gastaldi
            rhn-support-ggastald George Gastaldi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: