|
Post by Rick on Oct 10, 2014 15:22:37 GMT -5
SPFLite has MUCH MORE features than what is currently available for Eclipse. I know this would likely involve retooling but SPFlite is WAY AHEAD of the competition. IDE's are the next wave in software development (some would say current wave). Being a mainframer developing mostly COBOL and JCL, this tool kicks butt over what is available for Rational Developer for System z.
|
|
|
Post by George on Nov 1, 2014 13:04:29 GMT -5
Rick: Robert: I remember having Eclipse installed once when exploring some other language (don't remember which) and do remember it being very modular. I did a quick browse around, and Eclipse and all it's plugins seem totally Java oriented. If so, I have a real problem. Java and I just don't get along. I wasted several months once trying to get a handle on Java with a view to porting SPFLite over. I gave up in utter frustration.
George
|
|
|
Post by George on Nov 2, 2014 11:31:32 GMT -5
Robert: Yes, as well as all the support for writing plug-ins would be totally "here's how to do it in Java" terms. It would be really, really tough. George
|
|
|
Post by rodxhittle on May 20, 2015 19:53:40 GMT -5
I mentioned in another post I just made concerning this subject. A simple and helpful start would be if SPFLite would just recognize that I am writing code that is JAVA. To be specific on ISPF editor I can do a highlight command and specify COBOL or REXX and a few others. Key words and such change color. Very helpful.
Right now I find my self flipping back and forth between SPFLite and Eclipse when writing a JAVA CLASS. Eclipse does great for syntax checking and key word colors and such. But I can add and repeat and indent code so much faster using SPFLite. It takes very little to flip back and forth as I can have both open.
|
|
|
Post by rodxhittle on May 21, 2015 18:30:28 GMT -5
Almost there. I got AUTO files downloaded and expanded into the AUTO folder much as you directed. I then copied a file with the type of .JAVA into the same folder. I suspect that was not necessary.
I went to the option PROFILE and did selected 'java.INI' and when I did so a pop up window appeared with title of 'SPFLite Profile Editor - Profile = JAVA'
In the 'Editor Options' tab I have option 'HILITE AUTO ON?' checked.
I then went into my JAVA type file and no luck with any color highlights. I even typed on command line HILITE AUTO and got message of HILITE AUTO set to ON. But still no different colors.
Please advise.
|
|
|
Post by Jo on May 21, 2015 21:08:37 GMT -5
if your file is not named *.java then you can use your java.INI (and java.AUTO) with the command PROFILE USE JAVA
Jo
|
|
|
Post by George on May 22, 2015 12:14:52 GMT -5
jo: I tried out the java.AUTO file that we ship, it works, sort of, but like most of the .AUTO files in the distribution, it was cobbled together by myself pretty quickly from whatever list of java keywords I could locate quickly. It definitely needs some work. Not all the delimiters seem to be present (like = + - ) but you should still be seeing some effect. When editing your java source, do a simple PROF command and see what it says. What it should look like is: It should show the Profile being used is JAVA and HILITE AUTO should be on. And, like this small test, you should see the colorize effect. Let us know what you are seeing. George
|
|
|
Post by rodxhittle on May 22, 2015 14:12:51 GMT -5
name of file is MathClassDemo.java
I did the PROF command and got: (weird note: while in any text file with SPF Lite I find I can only highlight one line to cut and paste. plus I was pleased to see the line command MD work. )
PROFILE JAVA UNLOCKED, AUTOBKUP OFF, AUTOCAPS OFF, AUTOSAVE OFF PROMPT CAPS OFF, CASE T, CHANGE DS, COLLATE ANSI, COLS ON, EOL CRLF, FOLD OFF HEX OFF, HILITE FIND AUTO, LRECL 0, MARK ON, MINLEN 0, PAGE OFF PRESERVE OFF, RECFM U, SCROLL CSR, SETUNDO 10, SOURCE ANSI, START FIRST STATE OFF, TABS ON, XTABS 4 A-Z a-z 0-9
And just for the fun of it here is the code: package VC5; // Java For The COBOL Programmer - copyright 1999 Doke & Hardgrave // Chapter 5 - Computation // Program to demonstrate methods in the Math class // MathClassDemo.java 15 JAN 99
import java.text.NumberFormat; public class MathClassDemo { public static void main(String args[]) { // declare variables float balance = 1000F; float apr = .08F; int months = 6; double payment; payment = (balance * (apr / 12))/ (1 - 1 / Math.pow ((1 + apr/12), months)); float roundedPayment = roundOff(payment); // round to 2 decimals System.out.println ("Payment = " + payment); System.out.println ("Rounded Payment = " + roundedPayment); } // end main
// roundOff method static public float roundOff (double value) { value = value * 100; // move decimal 2 places to right // Math.round returns long - recast to float float roundedValue = (float) Math.round(value); roundedValue = roundedValue / 100; // move decimal back to left return roundedValue; } // end roundOff } // end MathClassDemo
|
|
|
Post by George on May 23, 2015 12:33:02 GMT -5
rodxhittle: OK, we have to put this to bed. Attach your SPFLite.INI, JAVA.INI and JAVA.AUTO files so we can try this using exactly what you have, there's got to be something dumb we're overlooking. Like Robert, I tried it and got the following: George [Edit] This isn't the right picture, I accidentally used the same image name as the next post. George
|
|
|
Post by George on May 23, 2015 13:46:39 GMT -5
Robert: OK, here it is with your AUTO file
|
|