Saving Changes to Code

When you have made changes to a program element's source code by editing it in a Source pane, save the changes by selecting Save or Save Replace from the Edit menu. 

The difference between Save and Save Replace matters when you have changed the name of a type or method by editing the source code.  Save saves all the changes made since the last save to a new program element, leaving the old one untouched.  Save Replace saves the changes, including the name change, to the existing program element.  This may introduce problems if other program elements make reference to the old name; references to a program element do not change when you change its name.

You can change the shortcut keys for Save and Save and Replace in the Coding page of the Options dialog (you can pick which action has shortcut key Ctrl+S and which has Ctrl+Shift+S).

The IDE will remind you to save your changes if you select a new program element or browser page to work with.  For example, if you edit the source code for MethodA, and then select MethodB from a browser pane, a dialog box will prompt you to save your work.

Saving changes to a versioned edition creates an open edition of the program element.

If you make some changes and then need to undo them before you save, select Revert to Saved from the Edit menu.

When you save your changes, they are automatically compiled. Any problems encountered by the compiler are added to the Problems page of the current browser and the All Problems page of the Workbench.

ngrelc.gif (533 bytes)
Incremental Compilation
Unresolved Problems
Editions and Versioning

ngrelt.gif (466 bytes)
Deleting Program Elements from the Workspace
Compiling Code
Finding and Fixing Problems
Creating an Open Edition
Versioning a Program Element
Saving the Workspace
Backing Up the Repository