Tips - Importance of treeNode Names
Developer Tips

What is a custom project view?

While visualizing the practical usage of MPS in any application, the Logical view might be a little too technical and shows information which the end user really do not intend to see or understand. Thus, alternative tree views like 'Favorites' view are already provided in-built by MPS and it was built using a language plugin called com.mbeddr.mpsutil.projectview

Similarly, we can also create our own project view and cutomize everything as per our application. 

How to begin using this language is already available here

In this blog we have two useful tips for you which rooted during implementation of our own view for the product that we develop. 

Tip 1: Importance of treeNode names

Issue: 
Required was a complex tree structure. Everything looked normal with no mistakes in configuration and no logical errors in code. But some nodes were always missing in the view. 

Reason: 
The actual reason for the issue happened has been identified as "duplicate tree names"

Example:
Check the below tree structure. Both the 'treeNode' have same names. Such structure do not throw any complication or runtime errors. MPS build also works fine but the result would be wrong and confusing.  

Solution:
Always make sure to name each treeNode in a unique manner to get your expected output in the custom project view. 



Tips - Memory Setting and Garbage Collection
Tips for MPS Developers