| Home » Language IDEs » C / C++ IDE (CDT) » LPEX Support for RPG
 Goto Forum:| 
| LPEX Support for RPG [message #17400] | Mon, 11 February 2002 14:11  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: MarkP.softlanding.com 
 Is there a parser for RPG that I can obtain somewhere?  I use the LPEX
 editor in Code/400 and wanted to try out the RPG support in CDT.
 
 Also, how can I manually open the LPEX editor to edit a file?  For
 example, if I wanted to edit Java or HTML using the LPEX editor.
 Specifically, I created a Cobol file in my C/C++ project but it opens in
 the default text editor.
 
 Thanks
 |  |  |  |  | 
| Re: LPEX Support for RPG [message #17405 is a reply to message #17400] | Mon, 11 February 2002 14:29   |  | 
| Eclipse User  |  |  |  |  | Originally posted by: adrianstoristeanu.sympatico.ca 
 Mark,
 
 1.- There is no generally-available RPG parser yet.
 
 2.- In order for an Eclipse editor to be used on certain file
 extensions, they must be first registered in the editor's plugin.xml.
 As you're using CDT, go to \eclipse\plugins\org.eclipse.cdt.cpp.ui, and
 add the file extensions you want to the "extensions" tag in '<extension
 point="org.eclipse.ui.editors"> <editor ..' of the plugin.xml.
 
 3.- LPEX itself associates file extensions with parsers.  See
 "Workbench"->"Preferences"->"LPEX Editor"->[+]->"Parser Associations".
 For COBOL, these extensions are associated by default:  *.CBL, *.CPY,
 *.cbl, and *.cpy.  See also "Workbench"->"Preferences"->"LPEX
 Editor"->[+]->"Parsers" for the flavours of COBOL parsers available.
 
 MarkP@softlanding.com wrote:
 >
 > Is there a parser for RPG that I can obtain somewhere?  I use the LPEX
 > editor in Code/400 and wanted to try out the RPG support in CDT.
 >
 > Also, how can I manually open the LPEX editor to edit a file?  For
 > example, if I wanted to edit Java or HTML using the LPEX editor.
 > Specifically, I created a Cobol file in my C/C++ project but it opens in
 > the default text editor.
 >
 > Thanks
 |  |  |  |  |  |  |  |  | 
| Re: LPEX Support for RPG [message #17426 is a reply to message #17400] | Mon, 11 February 2002 16:07   |  | 
| Eclipse User  |  |  |  |  | CDT doesn't have an RPG parser so I can't say I know of one that you can obtain.
 
 If you want to use LPEX to edit a file, you can configure Eclipse to default
 to LPEX for specific file extensions.   To do this, goto the Preferences
 dialog, Workbench, File Editors.   In the File Editors dialog, you can
 specify file suffixes (ie. *.java, *.cpp, *.html, etc.) and associate them
 with a particular editor.
 
 Dave
 
 MarkP@softlanding.com wrote:
 
 > Is there a parser for RPG that I can obtain somewhere?  I use the LPEX
 > editor in Code/400 and wanted to try out the RPG support in CDT.
 >
 > Also, how can I manually open the LPEX editor to edit a file?  For
 > example, if I wanted to edit Java or HTML using the LPEX editor.
 > Specifically, I created a Cobol file in my C/C++ project but it opens in
 > the default text editor.
 >
 > Thanks
 |  |  |  |  |  |  |  |  | 
| Re: LPEX Support for RPG [message #17467 is a reply to message #17463] | Tue, 12 February 2002 09:36   |  | 
| Eclipse User  |  |  |  |  | Originally posted by: adrianstoristeanu.sympatico.ca 
 REXX macros are not supported.  Even if they were, the Java LPEX
 command, action, and parameter sets are different, and the Eclipse
 framework imposes its own limitations (e.g., in how to add menus,
 open/close views, etc.), so any such macros would have to be
 significantly rewritten anyway.
 
 MarkP@softlanding.com wrote:
 >
 > David,
 >
 > Thanks for the editors tip.  That works great.
 >
 > As for RPG, I use a product called Code/400 which is based on the original
 > LPEX editor.  This has support for RPG/Cobol/CL/DDS, the main AS/400
 > languages.  I was hoping that all of this would just automatically come
 > over to the Java LPEX editor.  I see that Cobol is in their, but not the
 > others.
 >
 > Also, I have a lot of REXX macros that I use for the other editor.  Will
 > these work with the Java LPEX editor, or do they have to be rewritten?
 >
 > Thanks
 >
 > Mark
 |  |  |  |  |  |  | 
| Re: LPEX Support for RPG [message #17477 is a reply to message #17472] | Tue, 12 February 2002 10:07   |  | 
| Eclipse User  |  |  |  |  | Originally posted by: adrianstoristeanu.sympatico.ca 
 Mark,
 
 At the LPEX level, you can extend/override/define new commands and
 actions, write a user profile with your own customizations, extend the
 document parsers, etc.  Examples are in package com.ibm.lpex.samples,
 and in the various parser packages (see
 eclipse\plugins\com.ibm.lpex\lpexsrc.zip).  The API documentation didn't
 seem to have been included in the CDT driver for Eclipse R2.0, but I can
 send you a zip.
 
 At the Eclipse level, you can extend com.ibm.lpex.alef.LpexTextEditor
 (or CppEditor), etc.
 
 MarkP@softlanding.com wrote:
 >
 > Adrian,
 >
 > Thanks for the reply.
 >
 > Is it possible to write any macros in any language?  I guess since all of
 > Eclipse is extensible in some form, many things that were done with an
 > LPEX macro would now need to be done with some kind of Eclipse plug-in?
 >
 > Mark
 |  |  |  |  | 
| Re: LPEX Support for RPG [message #31557 is a reply to message #17413] | Tue, 14 May 2002 16:21  |  | 
| Eclipse User  |  |  |  |  | It's all academic now (as one should go through the Preferences, as indicated by Dave in another append), but just for closure's sake...  Excerpted from a
 post to the platform-ui-dev-admin mailing list:
 
 .. . .
 From some trial and error it appears to me that the first time eclipse is
 started up the editors for a particular file extension are added in
 alphabetical order (of the plugin id that the editor is declared in), and
 then the first one in the list is the default.
 
 Instead of doing it alphabetically, it would be better if we could register
 our editor with a relative priority.   This would allow our editor to be
 used only if there are no others.
 .. . .
 Bruce Sutton
 
 adrian wrote:
 
 > Not sure how the precedence of editors competing for the same file
 > extension works in Eclipse (another one of those mysteries...), but I'll
 > be glad to hear if there a method to the thing.
 >
 > MarkP@softlanding.com wrote:
 > >
 > > Thanks.  Hopefully an RPG parser will be made available soon.
 > >
 > > When I associate the LPEX editor with the Java extension in plugin.xml,
 > > LPEX becomes the default editor for Java.  How can I arrange it so that
 > > the Java editor is the default, but the LPEX editor appears on the Open
 > > With menu?
 > >
 > > Thanks
 > >
 > > Mark
 |  |  |  | 
 
 
 Current Time: Fri Oct 31 15:16:00 EDT 2025 
 Powered by FUDForum . Page generated in 0.05453 seconds |