Chapter 2. Editing NED Files

Table of Contents

Overview
Opening Older NED Files
Creating New NED Files
NED Source Folders
Using the NED Editor
Editing in Graphical Mode
Editing in Source Mode
Associated Views
Outline View
Property View
Palette View
Problems View
NED Inheritance View
Module Hierarchy View
Parameters View

Overview

When you double-click a .ned file in the IDE, it will open in the NED editor. The new NED editor is a dual-mode editor. In the editor's graphical mode, you can edit the network using the mouse. The textual mode allows you to work directly on the NED source.

When the IDE detects errors in a NED file, the problem will be flagged with an error marker in the Project Explorer and the Problems View will be updated to show the description and location of the problem. In addition, error markers will appear in the text window or on the graphical representation of the problematic component. Opening a NED file which contains an error will open the file in text mode. Switching to graphical mode is possible only if the NED file is syntactically correct.

Note

As a side effect, if there are two modules with the same name and package in related projects, they will collide and both will be marked with an error. Furthermore, the name will be treated as undefined and any other modules depending on it will also generate an error (thus, a "no such module type" error may mean that there are actually multiple definitions which nullify each other).