+ Start a Discussion
kito kidkito kid 

package the apex classes like in Java

During the development of apex classes, I found it is difficult for me to trace the classes according to their related purpose.

In Eclipse force IDE, I want to create a folder (package) which I meant to put some classes such as


1) Bean classes

2) Action classes

3) Other purpose classes, etc.

 

But even I create folder, I can't put or create new apex classes under certain folder.

 

So It is hard for me to search if I want to find certain class.

If I can create new folder and put certain classes under that folder, I can easily organize and manage my classes.

 

Any better approaches to share for a new learner like me?

 

 

Best Answer chosen by Admin (Salesforce Developers) 
Bhawani SharmaBhawani Sharma
You cannot create package in Salesforce to put your class. Saleforce put all the classes in default folder. I would say, to use some specific keyword when creating classes like:
DAO_ClassName
Service_ClassName
Helper_ClassName

All Answers

Bhawani SharmaBhawani Sharma
You cannot create package in Salesforce to put your class. Saleforce put all the classes in default folder. I would say, to use some specific keyword when creating classes like:
DAO_ClassName
Service_ClassName
Helper_ClassName
This was selected as the best answer
kito kidkito kid
Thanks Bhawani, I will take note of it and will structure my classes like you have mentioned. Although it won't be prefect solution, surely it can give me some tip.