[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jedit-cvs
Subject:    [ jEdit-commits ] SF.net SVN: jedit:[23446] plugins/NetRexx/trunk
From:       infire () users ! sourceforge ! net
Date:       2014-03-30 6:10:33
Message-ID: E1WU8x7-0000Mn-Ew () sfs-ml-4 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 23446
          http://sourceforge.net/p/jedit/svn/23446
Author:   infire
Date:     2014-03-30 06:10:31 +0000 (Sun, 30 Mar 2014)
Log Message:
-----------
Add guisample program, update readme

Modified Paths:
--------------
    plugins/NetRexx/trunk/README.TXT
    plugins/NetRexx/trunk/build.number

Added Paths:
-----------
    plugins/NetRexx/trunk/macros/NetRexx_samples/guisample.nrx

Modified: plugins/NetRexx/trunk/README.TXT
===================================================================
--- plugins/NetRexx/trunk/README.TXT	2014-03-29 06:30:02 UTC (rev 23445)
+++ plugins/NetRexx/trunk/README.TXT	2014-03-30 06:10:31 UTC (rev 23446)
@@ -1,48 +1,44 @@
-NetRexx Script readme file
+NetRexx jEdit Plugin readme file
 
-NetRexxScript feature highlights:
+The NetRexx Plugin replaces earlier plugins NetRexxJe, NetRexxDE and NetRexxScript.
 
-    * Efficient execution of NetRexx scripts and macros in jEdit
-    * Optional caching of parsed scripts to improve performance
-    * Option to "preparse" all available scripts as a unit for performance (aka \
                "greased lightning mode") and cross-script access support
-    * Option to suppress or allow trace output
-    * Options to execute a currently open NetRexx file including unsaved changes
-    * Optional dockable console window with command line to run scripts with parms \
                and view say output or respond to ask input
-    * View say output with or without trace from the console window to aid debugging
-    * Option to "prefix" scripts automatically adds access to jEdit functions and \
                variables
-    * Script parse errors are automatically highlighted in script source files and \
                listed in the "Error List" as well as displayed in a console window
-    * User defined "classpath" option for making classes available to NetRexx \
                scripts
-    * User defined "scriptpath" option for access to scripts outside of jEdit macro \
                libraries
-    * Support for executing compiled NetRexx scripts or any "main" type Java class \
                file as a macro or console command
-    * Includes an updated version of the "NetRexx at Once" cross reference guide to \
Java and NetRexx +NetRexx Plugin feature highlights:
+
+    * Compile and run or interpret NetRexx programs, scripts and macros from jEdit
+    * Interpret a currently open NetRexx file including any unsaved changes
+    * Dockable console window with command line to view say output or respond to ask \
input +    * View output with or without trace from the console window to aid in \
debugging programs +    * Errors are automatically shown in source files, the "Error \
List", and in the console window +    * A "classpath" option makes Java classes \
available to NetRexx programs +    * Run compiled NetRexx scripts or Java class files \
as macros or console commands +    * Includes the "NetRexx at Once" cross reference \
guide to Java and NetRexx +    * Includes an Ant based IDE for developing Android \
programs in NetRexx +    * Compile and run simple Java programs
     
-Installation:
+Installation: 
 
-You must install the plugin manually at this time. 
+The stable 1.0 version is being released to jEdit Plugin Central and should soon be \
available via the automatic plugin manager installation process.  
-When it reaches a stable 1.0 version and gets packaged for distribution from the \
                jEdit site, you will be able to use the automatic installation \
                process, but for now -
-
 To install it manually:
 
-    * Download the NetRexxScript.jar file and the NetRexxC.jar file or download and \
                unzip the zip file which contains both
-    * Copy both files to the user account's jEdit jars directory or the main jEdit \
jars directory. +    * Download the NetRexxScript.jar file and the NetRexxC.jar file
+    * Copy both files to the user account's jEdit jars directory.
+    
+    https://kenai.com/projects/netrexx-plus/downloads/download/jEdit%20NetRexxPlugin/NetRexxPlugin.jar
 +    http://netrexx.org/netrexx/netrexxc/trunk/lib/NetRexxC.jar
 
-  On Windows XP the user's jEdit home directory could be C:\Documents and \
                Settings\useracct\.jedit\jars (Where "useracct" is the actual \
                userid.)
-  The jEdit main jar directory may be C:\Program Files\jEdit\jars
-
-  If you have the NetRexxJe plugin installed, NetRexxC.jar is installed with it, so \
just copy NetRexxScript.jar to the same directory. +  On Windows the user's jEdit jar \
directory could be C:\Documents and Settings\useracct\.jedit\jars or perhaps \
C:\Documents and Settings\useracct\AppData\Roaming\jEdit\jars +  (Where "useracct" is \
the actual userid).   
-  
-  
-Sample Scripts provided with the NetRexxScript plugin:
+Sample macro scripts provided:
 
-    * asktest  --  This script demonstrates console IO to the user - it requires the \
                NetRexxScript dockable window to work
-                    Say output displays in the OUT panel of the console and ask \
input is read from the command line +    * asktest  --  This script demonstrates \
console IO  - it requires the NetRexx dockable window +                    Say output \
displays in the panel of the console and Ask input is read from the cmd line +    * \
                guisample -- a simple NetRexx gui program with a progress bar
     * index  -- This script demonstrates the effect of caching on indexed variables
                  If cached, the second execution will show different results for the \
                second display of s['x']
-    * iosample  -- This script demonstrates easy GUI IO to the end user
+    * iosample  -- This script demonstrates easy jEdit GUI IO tricks
     * multi  --  This script demonstrates one script calling another in preparse \
                mode - demonstrates parse error if caching option is off
-    * test  --   This is the basic test script for the plugin -- It demonstrates say \
                output that contains some trace sections
-                  which can be viewed in the trace panel of the plugin console \
window +    * test  --   This is the basic test script for the plugin -- It \
demonstrates say output that contains some trace sections which can be viewed in the \
                trace panel of the plugin console window
     * testbin  --  This is a "binary" NetRexx script - it does not use "Rexx class" \
variables and runs OK even without the "prefix" option    

Modified: plugins/NetRexx/trunk/build.number
===================================================================
--- plugins/NetRexx/trunk/build.number	2014-03-29 06:30:02 UTC (rev 23445)
+++ plugins/NetRexx/trunk/build.number	2014-03-30 06:10:31 UTC (rev 23446)
@@ -1,3 +1,3 @@
 #Build Number for ANT. Do not edit!
-#Fri Mar 28 22:31:30 PDT 2014
-build.number=1620
+#Sat Mar 29 23:04:36 PDT 2014
+build.number=1621

Added: plugins/NetRexx/trunk/macros/NetRexx_samples/guisample.nrx
===================================================================
--- plugins/NetRexx/trunk/macros/NetRexx_samples/guisample.nrx	                       \
                (rev 0)
+++ plugins/NetRexx/trunk/macros/NetRexx_samples/guisample.nrx	2014-03-30 06:10:31 \
UTC (rev 23446) @@ -0,0 +1,53 @@
+
+class guisample implements ActionListener        --    ActionListener interface lets \
the GUI objects talk to the program code +   
+    properties static
+       
+    frame=JFrame                                --    holder for a GUI window
+    
+    textfield=JTextField						--	  holder for some text to edit
+   
+    method main(sa=String[]) static		--		a startup method
+    	
+    	arg=Rexx(sa)		--	save start parms in case needed
+   
+        frame=JFrame("Sample GUI window")        --    create a GUI window frame
+       
+        frame.setSize(400,100)                    --    give the window some space \
on the screen +       
+        panel=JPanel()                            --    create a panel to hold some \
GUI objects +       
+        frame.add(panel)                        --    put the panel in the window \
frame +
+		parse Date().toString a b c d e f		--		save some Java date fields 
+		
+        textfield=JTextField(b c f)    --    create a spot for some text using saved \
date +       
+        panel.add(textfield)                    --    add the text field to the \
panel +       
+        button=JButton("OK")                    --    create a button to click
+       
+        button.addActionListener(guisample())    --    attach some code (an instance \
of this class) to watch the button +       
+        panel.add(button)                        --    put the button in the panel
+        
+        pb=JProgressBar(0,100)				--		create a progress bar
+        
+        panel.add(pb)								--		put the progress bar in the panel
+					
+        frame.show                                --    display the GUI window on \
the screen +        
+        loop i=1 to 100 while frame \= null	--		advance the progress bar 1% every \
tenth second until full or clicked +        	Thread.sleep(100)							--		wait 100 \
milisecs +        	pb.setValue(i)									--		move the progress bar
+        	end
+       
+        loop while frame\=null;end                --    wait for the GUI window to \
do something (click button) so jEdit can show the text in the console.  +       
+    method actionPerformed(e=ActionEvent)         --    this is the code that \
listens to the button +    	
+    	say textfield.getText                    --    show the text field contents
+       
+        frame.dispose                            --    clear the GUI window frame \
from screen and memory +       
+        frame=null                                --    erase the pointer to stop \
the main program

This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.


------------------------------------------------------------------------------
_______________________________________________
jEdit-CVS mailing list
jEdit-CVS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic