Define the Possible Server Elements

Next, you must define the possible server elements and the method for obtaining them.

You must do the following:

  • define the hierarchy and way of displaying the elements in the Project Explorer
  • you must create the structure such that it conforms to the Composite Design Pattern.

When the Framework needs to refresh, the method refreshServerContent retrieves the structure of objects on the server from which it builds the tree of server elements from the model.