This example can be done by clicking on the "Compiler Preferences" button on the Program Window toolbar and setting the flag, or by right-clicking on the object name and selecting "PL/SQL CCFlags".
In 7.0.3 you can use the AfterConnect.sql file in the PL/SQL Developer installation directory. It will execute for each session created in PL/SQL Developer, not just the sessions used for compilation.