com.sbg.lwc as the package name in source?

Discussion in 'Help & Support' started by keitaro3660, May 30, 2013.

  1. keitaro3660 In the know

    Member Since:
    Apr 3, 2013
    Message Count:
    32
    Likes Received:
    8
    Trophy Points:
    25
    is this intended??
    i mean, okay maybe the development wont have any problem.

    but in the .java import, there will be
    Import *packagename*.R;

    as far as i know, "R" in import is reference and usually cause a trouble.
    why the package name in source is diferent than actual package name?
    is there won't be a problem and i don't need to Refactor -> Rename it?

    if there won't be any problem with the apps, of course i'm cool with it.
    just asking and need clarification, thanks :)
  2. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    175
    Trophy Points:
    500
    com.sbg.lwc is the default package that contains the source files. To change it, you have use refactor. I don't see why you would want to change it though as there's really no point. Your application's package name is the one that is stated in the manifest. There's nothing wrong with importing the R class.

    Hope that helps.
    keitaro3660 likes this.
  3. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    175
    Trophy Points:
    500
    Moving this out of bug reports.
  4. keitaro3660 In the know

    Member Since:
    Apr 3, 2013
    Message Count:
    32
    Likes Received:
    8
    Trophy Points:
    25
    oooohhh okay thanks :D
    yeah it became simpler to rename the package now, thanks :)

Share This Page