Editing code

You can edit the code in your QNX Photon Appbuilder project using both PhAB and the IDE. Using PhAB, you can control the widgets and the overall layout of your program; using either PhAB or the IDE, you can edit the code that PhAB generates and specify the behavior of your callbacks.
To use PhAB to edit the code in a QNX Photon Appbuilder project:
  1. In the Project Explorer view, select a QNX Photon Appbuilder project.
  2. Click the Open Appbuilder button in the toolbar (Icon: PhAB). PhAB starts, then opens your project.
Note: If for some reason the Open Appbuilder button isn't in the C/C++ perspective's toolbar:
  1. From the main menu, select Window > Customize Perspective .
  2. Select the Commands tab.
  3. Check Photon Appbuilder Actions.
  4. Click OK. The Open Appbuilder button appears in the toolbar.

To use the IDE to edit the code in a QNX Photon Appbuilder project:


  1. In the Project Explorer view, double-click the file you want to edit. The file opens in an editor.

If a file that you created with PhAB doesn't appear in the Project Explorer view, right-click your project and select Refresh.

Note: Editing files using two applications can increase the risk of accidentally overwriting your changes. To minimize this risk, close the file in one application before editing the file in the other.
Related concepts
Building a QNX Photon Appbuilder project
Related tasks
Creating a QNX Photon Appbuilder project
Closing PhAB
Reopening PhAB
Importing an existing standalone QNX Photon Appbuilder project
Checking out an existing PhAB project from CVS