Project Panel

Processor Expert | View | Project Panel

Processor Expert Project Panel is a tab in CodeWarrior's project window (panel). When the 'Project Panel' is noticed in Processor Expert documentation the 'Processor Expert Project Panel' is understood.

 

Figure 1 - Processor Expert tab

The Project panel shows the application components:

 

  • Configurations of the project.
  • Operating System - Beans related to operating system used by the application (if there is some operating system present).
  • CPUs (CPU beans) included in the project
  • Embedded Beans included in the project. Every bean inserted in the project is displayed in the project panel and has a subtree showing
    • Methods - Methods allow runtime control of the bean's functionality.
    • Event routines - Events allow handling of the hardware or software events related to the bean. If the event is disabled, the name of the event is shown. For enabled events, the name of the handling function is shown.
    • Initialization code items - Part of the initialization code that can/must be modified by the user.
    • ISRs - represent bean-related interrupt routines that can be created by the user for low level interrupt processing. For items, whose ISR names have been specified within a bean settings, a user-specified name of an ISR and name of the interrupt vector is shown. If an ISR name was not specified (interrupt has to be disabled in this case), only the interrupt vector name is present.

    All bean's items has its status icon that signalizes the enabled () or disabled () state. If this state cannot be directly changed, the background of the icon is gray. For more details please see chapter Embedded Beans.

  • User modules included in the project (main module, event module, external user modules ...)
  • Generated Modules - This folder contains the modules generated by Processor Expert. There is a special subfolder for the generated Bean Modules. For the bean module description please see chapter Code Generation.
  • External Modules - This folder contains the modules that are not generated by Processor Expert but are required for the application such as libraries or system modules. These files are not influenced by Processor Expert but they are linked to the final application.
  • Documentations - list of files attached into project as documentation, with relative or absolute path. No actions are made with these files. Please refer to chapter Code Generation for details on generated documentation files.
  • PESL methods (if PESL is enabled)

 

All Project Panel items are organized in folders in a tree. You can expand and collapse a tree's branches by clicking on the plus "+" or minus "-" signs, respectively. You can create your own folders in the Beans folder and move beans between them using mouse drag and drop function.

The following icons indicate the status of each project panel item:

Beans - Processor Expert didn't found any problems in the bean's settings.

Configurations - configuration is selected as active.

CPUs - CPU is currently selected as a target CPU.

User Module, Generated Module - The module is all right and included in the project.

PESL - Processor Expert System Library is enabled.

Beans - Gray cross means that bean is disabled and code won't be generated for it.

Configurations - Configuration is not active. Double click the icon to select it as active configuration.

CPUs - CPU is not selected as target CPU. Double click the icon to select it as the Target CPU.

User Module - The user module is disabled. It is not possible to disable the Main and Event modules.

PESL - Processor Expert System Library is disabled.

Beans, CPUs - beans (CPU bean's) settings are wrong or conflict with another bean. See chapter Bean Checking for details.
Possibly incorrect setup was found in project or in bean's settings. The warnings are displayed in Error window including simple description.

Icons near the bean's icon mean the bean is individually setup for preserving user changes in generated code. See chapter User Changes in Generated Code for details.

The Project panel window allows quick access to supported methods and events using mouse. See paragraph Other mouse actions.

Pop-up menu

Project panel pop-up menu is accessible by right click on the empty (white) area of the Project Panel. Contains basic operations related to the project and beans.

  • Open Project - allows the user to open Processor Expert project from disk.
  • Save Project - saves the current state of the project (e.g. all the bean and processor expert settings). Project is also automatically saved when CodeWarrior or project is closed.
  • Copy Project to... - copies the Processor Expert project file (.PE containing settings of all beans) and the user modules into another directory. It is useful for backing up the state of the project. The stored file could be opened again using Open project command from this menu.
  • Reload Project - Reloads project from the last saved state on the disk.
  • Add Bean(s) - allows to add beans from the project. Shows bean selector dialog.
  • Import... - imports the content of the file containing exported objects (e.g. beans, configurations...) or whole project.
    All items from the imported file will be added into the current project.
  • Export... - exports the selected objects in the project panel (e.g. beans, configurations...)to the specified file. Its possible to insert them into another project using the Import... command.
  • Cut - cuts selected bean with its settings to the clipboard.
  • Copy - copies selected bean with its settings to the clipboard.
  • Paste - inserts bean from the clipboard to the current project.
  • Help - displays related information for currently selected bean or method. If there is nothing selected this help page for Project Panel is displayed.

 

Pop-up Menus of Objects

Pop-up menus of individual objects in project panel are accessible with a right mouse button click on the object's icon or label.

 

 


Other mouse actions

Drag'n'drop

 

  • Dragging method (or PESL command) with the left mouse button to the source editor will place a method call to the source code. If the shift key is hold while the users drag and drops the method, the call is placed exactly to the mouse cursor position on the line. Otherwise the call is placed on the new line. A behavior of this function is controlled by the option Environment Options | Drag'n'drop method declaration. See chapter Options for details.
  • Dragging user module into the source code will create an #include command (#include "user_module_name.h") at the place of the cursor.
  • The user can drag'n'drop components within the Project Panel to reorganize component trees (CPUs, Beans, Documentation)

 

Multiselect

 

  • Using the Ctrl and Shift key together with cursor key or left mouse button allows to select multiple items.

 

Double click

 

  • Double-clicking the bean icon in the Project panel opens the Bean Inspector
  • Clicking on the selected bean name in the Project Panel allows you to edit the name of the selected bean
  • Double clicking on any event/method/initialization enable/disable icon changes its enable/disable state (you can do it also via the bean inspector)
  • Double clicking on any event/method name after code generation opens the file editor/viewer at the position of the event/method's code
  • Double clicking on any ISR opens the source code editor at the interrupt routine (if its name has been specified within the bean properties).

 

Automatic Hints

 

  • Placing the cursor on any event/method icon/name displays the event/method's and parameter's description and syntax
  • Placing the mouse over any bean icon/name displays the bean description

 

 

Figure 2 - The content of the Project Panel

 

 

[top of page]