+ Start a Discussion
Roger WickiRoger Wicki 

Packaging structures like in Java - Is it possible?

Hi Community

I'd like to structure my code better into segments that logically work together. I know that in native Java you'd just create different packages and work with those. However, with the Force.com IDE plugin in eclipse this does not seem to be possible. So I also looked into Packages Salesforce offer natively, but those are kind of different.

So my questions for you guys:
  • Do you know if it is even possible to set up package structures like you would in Java?
  • Are Salesforce Packages useful for use as logical collections of code?
  • Has anyone already experience with this kind of problem?
Thanks ;)
Ravi Dutt SharmaRavi Dutt Sharma
Hey Roger,

Unfortunately it is not possible to create packages in apex. To logically combine your classes and page into units, you can prefix them with the name of the module to which they belong. That's how I have been doing it for the past few years.