Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » LPEX Support for RPG
LPEX Support for RPG [message #17400] Mon, 11 February 2002 14:11 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #17409 is a reply to message #17405] Mon, 11 February 2002 14:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: MarkP.softlanding.com

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
Re: LPEX Support for RPG [message #17413 is a reply to message #17409] Mon, 11 February 2002 14:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: adrianstoristeanu.sympatico.ca

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
Re: LPEX Support for RPG [message #17426 is a reply to message #17400] Mon, 11 February 2002 16:07 Go to previous messageGo to next message
Eclipse UserFriend
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 #17429 is a reply to message #17409] Mon, 11 February 2002 16:13 Go to previous messageGo to next message
Eclipse UserFriend
If you use Eclipse to configure suffix - editor associations, you can
specify which of the editors associated with a particular suffix is the
default. Then the Open With menu in the Navigator will open with the
default editor as the first menu item and the other associated editors
next.

Dave

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
Re: LPEX Support for RPG [message #17463 is a reply to message #17426] Tue, 12 February 2002 09:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: MarkP.softlanding.com

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 #17467 is a reply to message #17463] Tue, 12 February 2002 09:36 Go to previous messageGo to next message
Eclipse UserFriend
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 #17472 is a reply to message #17467] Tue, 12 February 2002 09:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: MarkP.softlanding.com

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 #17477 is a reply to message #17472] Tue, 12 February 2002 10:07 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Design docs on datastore/miner architecture
Next Topic:eclipse/cdt editor
Goto Forum:
  


Current Time: Fri May 02 10:03:07 EDT 2025

Powered by FUDForum. Page generated in 0.03927 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top