Eclipse platform integration Adding new elements To add new elements to your project including diagrams, packages, and files: 1. With Eclipse Model Browser displayed, right-click an element for which you want to add an element. 2. Select Add New > (element type) from the menu depending on what type of element you selected. (See also Filtering out file types .) The following figures show how you can add an element to your project. While this example shows adding a package. The same method is true for other elements, such as diagrams, files, actors, operations, and so on.
If you want to create a new package, right-click the project for a new main package or an existing package to create a sub package and select Add New > Package . You can add other elements (such an object, dependence, and a class) from the menu. Filtering out file types To prevent Eclipse from presenting unwanted Rational Rhapsody project file types when adding files: 1. In Eclipse, choose Window > Preferences . 2. In the Preferences window, expand the Team section of the tree structure. 3. Select Ignored Resources to display the list of file extensions that can be set to be ignored. 4. If the list does not contain the file types you want to filter out, click the Add Pattern button. 5.
On the Add Ignore Pattern window, type the file extension using the format shown in the following figure and click OK to add the extension to Ignored Resources . 6. Using this method, you can enter the Rational Rhapsody *.dat , *.ehl , *.rpw , and *.vba file extensions to Ignored Resources . 7. Click OK . 134 User Guide