How to create subfolders (eclipse)

Discussion in 'Plugin Development' started by Scullyking, Jan 16, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Scullyking

    When I create a sub-folder in Eclipse within the package I'm doing right-click create new folder, and then moving the class into it. However there are errors on the package name, etc.

    I guess I'm doing it wrong or not implementing it correctly for something... thanks :)

    Sorry wrong place, mod please move?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
  2. Offline

    sgavster

    Wrong Section. Wait for an admin to move it :)
    Edit: Ninja'd.. :p
     
    Scullyking likes this.
  3. Offline

    np98765

    Moved out of Resources (into Plugin Development).
     
  4. Offline

    sgavster

    Try making a new package, not folder. so
    an example:

    HTML:
    package
      packagePartTwo
      classNameForPackagePartTwo
        packagePartThree
        classNameForPackagePartThree
          packagePartFour
          classNameForPackagePartFour
         
      
     
  5. Offline

    Wizehh

    PHP:
    Project:
      
    package1:
         
    class1:
         
    class2:
      
    package2:
         
    class1
     
  6. Offline

    Scullyking

    Wizehh
    I want it to be packages within packages though:

    PHP:
    Project:
      
    mainpackage:
          
    subpackage:
            
    something.java
          subpackage
    :
            
    somethingelse.java
     
  7. Offline

    sgavster

    Scullyking yes, right click the package and 'create new package'

    Then,

    PHP:
    mainpackage:
      
    subpackage
        subpackage
    .anotherpackage
          something
    .java
            subpackage
    .anotherpackage.anotherpackages
              somethingagain
    .java
     
  8. Offline

    Scullyking

  9. Offline

    Wizehh

    I don't think you can have packages inside packages..
     
  10. Offline

    jacklin213

    i have a package me.jacklin213
    subpackage would be me.jacklin.<another name>
     
  11. Offline

    Wizehh

    jacklin213 Wouldn't that just be another package from your project? But, okay, your the guy with twenty plugins ;), so I'll take your word for it.
     
    jacklin213 likes this.
Thread Status:
Not open for further replies.

Share This Page