function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.