Loading ...
Sorry, an error occurred while loading the content.

Re: [NH] NoteTab-Java SNAFU?

Expand Messages
  • Jody
    Hi Lee, The following is a Clip made by Wayne on the Clips list. If it does not work as is, try editing it. Select the two Clips start in front of the first
    Message 1 of 1 , Aug 22 12:32 PM
    • 0 Attachment
      Hi Lee,

      The following is a Clip made by Wayne on the Clips list. If it
      does not work as is, try editing it. Select the two Clips start
      in front of the first H= same line and copy. Go to a Library you
      want the Clips in, right click and choose Add from Clipboard, and
      then save.

      H="Compile Java"
      ;// Get rid of old error file, so we don't get misled by seeing it around
      ^!SET %ErrorFile%=^$GetStdErrorName$
      ^!DestroyDoc ^%ErrorFile%
      ;// Make sure source code is saved
      ^!Save
      ^!Set %File%=^**
      ;// Prepare a place to put the command's output
      ^!Set %DocIndex%=^$GetDocIndex$
      ^!Toolbar "New Document"
      ;// Compile the java applet
      ^!InsertText ^$GetOutput("C:\JDK\BIN\JAVAC -deprecation" "^%File%")$
      ;// Close the file if command produced no output.
      ^!If ^$GetTextSize$ > 1 SKIP
      ^!Close DISCARD
      ;// Check for an error file
      ^!IFFILEEXIST "^%ErrorFile%" DISPLAYERROR
      ;// No errors to refocus on source code document
      ^!SetDocIndex ^%DocIndex%
      ^!GOTO END
      ;// Load and display errors
      :DISPLAYERROR
      ^!OPEN ^%ErrorFile%
      ^!SetWordWrap ON
      ^!SOUND SystemExclamation



      H="Jump to source line from error file"
      ;// Find the line number
      ^!Select LINE
      ^!Find ": " SH
      ^!Jump Select_Start
      ^!Set %Position%="^$GetRow$:^$GetCol$"
      ^!Find ":" BS
      ^!Jump Select_End
      ^!SelectTo ^%Position%
      ^!Set %Line%="^$GetSelection$"
      ;// Find the filename for the source code
      ^!Jump Select_Start
      ^!MoveCursor -1
      ^!Select BOL
      ^!Set %File%="^$GetSelection$"
      ;// Open the source file
      ^!Open ^%File%
      ;// Position Cursor on line
      ^!Jump ^%Line%


      --
      Wayne M. VanWeerthuizen
      Homepage: http://landru.myhome.net/wayne

      Happy HTML'n!
      Jody

      http://www.notetab.net

      The NoteTab and Html List...
      mailto:Ntb-html-Subscribe@yahoogroups.com
      mailto:Ntb-html-UnSubscribe@yahoogroups.com
    Your message has been successfully submitted and would be delivered to recipients shortly.