FAQ

Q: In which cases should the model viewer be used?

 

A: You should generally always use a model viewer when you require a visual representation of the element model API. The model viewer provides the tools developer with a generic UI component that can be used to visualize the Selena model in the form of a tree viewer. To display the model viewer, the tools developer can, for example, specify which objects are set as root nodes, which viewer filter is used, and which context menu is assigned.

 

 

Q: How do I proceed if I want to exchange a label provider?

 

A: To exchange a label provider, you need access to the JFace tree viewer control. For this purpose, the model viewer provides the getTreeViewer() method. Then you simply proceed with the normal process for the JFace tree viewer. For more information, refer to the relevant article from Eclipse corner.

 

 

Q: How can I sort items within the model viewer?

 

A: As with exchanging label providers or enabling Drag&Drop, you need access to the SWT tree or the JFace tree viewer, for which you should use the methods getTree() and getTreeViewer() respectively.