home *** CD-ROM | disk | FTP | other *** search
/ PC User 2001 August / APC_Aug2001_CD2.iso / features / web_dev / files / mwjpp516.exe / %MAINDIR% / Tools / Data / yourJavaHeader.script < prev    next >
Encoding:
Text File  |  2001-06-19  |  706 b   |  31 lines

  1. !!Script
  2.  
  3. function WriteHeader(editor)
  4. {
  5.     // Edit this script to provide a custom header for your new Java Files
  6.     
  7.     var name = Application.userName;
  8.     var org = Application.userOrganization;
  9.     
  10.     if (editor)
  11.     {
  12.         var date = new Date();
  13.         editor.append("/*\n");
  14.         editor.append(" * Author: " + name + "\n");
  15.         if (org && org.length > 0)
  16.         {
  17.             editor.append(" * Organization: " + org + "\n");
  18.         }
  19.         editor.append(" * Created: " + date.toLocaleString() + "\n");
  20.         editor.append(" * Modified: " + date.toLocaleString() + "\n");
  21.         editor.append(" */\n\n\n");
  22.         
  23.         // Return false to have the standard header inserted.
  24.         return true;
  25.     }
  26.     return false;
  27. }
  28.  
  29. !!/Script
  30.  
  31.