The Model Viewer

 

This chapter provides an overview of the model viewer functions.

This document explains how:

·         To create the model viewer using different methods

·         You can assign one or more objects to the viewer as root nodes

·         Link the context menu with the viewer

·         You can use a filter with the viewer

·         You can restrict the tree display

 

Topics

Introduction

 

Features

 

Viewer Class

 

Defining Filters for the Model Viewer

 

FAQ

 

Introduction

The model viewer represents a generic UI component for tool integration within the SAP Java IDE. The model viewer provides a visual representation of the element model API.

 

 

 

Elements, references, and reference collection are the basic modules of the model viewer. They are arranged hierarchically in a tree structure.

 

 

The model viewer is able to filter elements and their relationships and also offers a range of functions that are usually offered in tree viewers; these include the possibility of setting root nodes, linking context menus, restricting the tree display to different aspects, or executing a refresh after changes.

 

Example Plug-In

As a first step, we will use an example to analyze the functions of the model viewer. The plug-in com.tssap.selena.model.extension.examples provides an appropriate example implementation. It demonstrates all the important basic functions of the model viewer.

 

Executing the Example Plug-In

If you have not already done so, create a (J2EE) project, the components of which are based on the Selena model.

To display the example plug-in as an Eclipse view within the current perspective, choose Window ® Show View ® Other... followed by Selena Extension ® Generic Data Model View.

The model viewer now displays at least all models that are associated with projects in the current workspace.