|
Oops. Misspelling I meant Ctrl-Enter for putting a in a new blank lineClient for System i & iSeries (WDSCI-L) mailing list
not Ctrl-Space.
Thanks, Matt
-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx]
On Behalf Of RNewton@xxxxxxxxxxxxxxxxx
Sent: Tuesday, November 08, 2011 12:33 PM
To: Rational Developer for IBM i / Websphere Development Studio Client
forSystem i & iSeries
Subject: Re: [WDSCI-L] LPEX FreeMarker Template Plugin (was:Re:
CodeSnippets)
Matt,
Thanks for the great feedback. I'm planning to make the key sequence
configurable in the next version so that will give everyone the ability
to
map it to the key sequence that best fits their environment.
"I have to now remove this tool to use Ctrl-Space like I prefer to do."
Mapping to ctrl-enter has not affected my ability to use the ctrl-space
intellisense features built into the editor. Can you provide some more
information about your setup?
"Or make it a command or action that I can assign a key sequence to."
This is a good idea. Currently when the plugin is activated it overrides
any custom profile set with the plugin's custom profile. (Following the
excellent example provided to me by Rick Rauterkus). I'm not sure how to
accomplish getting the plugin to work without using this technique, to
be
honest since this is my first plugin. I will look into it though. It
would
be great to be able to have this available without changing the user's
profile setting.
As for the error found in the Public Procedure example... I cannot
explain
the error that you received actually so I would like to see an error log
if you wouldn't mind creating an issue on the project page (
http://code.google.com/p/lpex-freemarker-template-plugin/issues/entry)
and
pasting in your log contents. (set your logging level to all and
reproduce
the problem to get the logging file populated). The renaming of the
prompt
group should not be needed and is actually going to be problematic for
handling repeats of that group.
How Repeatable Prompt Groups Work
Prompt groups can be repeatable. This means that when the prompt group
is
rendered as a form it will repeat, collecting the multiple instances of
data collected for each render of the prompt group as an array named
like
promptgroupname.repeats. In the template text you would loop through
each
entry in that repeats array to get the prompt group object with the
#list
directive (basically a for loop). The "parm" variable reference is the
name given to the current element in the array (the current prompt group
in the collection) and it has all of the child prompts in it so you
refer
to "parm.description" to get the description of the current prompt group
in the array.
Thanks,
Robert Newton
Estes IT
System Architect
804-353-1900 x2256
rnewton@xxxxxxxxxxxxxxxxx
From:
"Tyler, Matt" <matt.tyler@xxxxxxxxxxxxxx>
To:
"Rational Developer for IBM i / Websphere Development Studio Client for
System i & iSeries" <wdsci-l@xxxxxxxxxxxx>
Date:
11/08/2011 12:43 PM
Subject:
Re: [WDSCI-L] LPEX FreeMarker Template Plugin (was: Re: CodeSnippets)
Sent by:
wdsci-l-bounces@xxxxxxxxxxxx
I think you should change the key sequenced used to activate from
Ctrl-Enter to one of these Ctrl-Shift-Enter, Ctrl-Alt-Enter,
Ctrl-Shift-Space or Ctrl-Alt-Space.
I have to now remove this tool to use Ctrl-Space like I prefer to do.
Or make it a command or action that I can assign a key sequence to.
Also, When I fill out the form and add parameters it returns with an
error, "${parm.description} [on line 85, column 17 in Public Procedure
Template]". I noticed in the XML document it has "parameter" as the
entity name. If I rename the XML document entity name from "parameter"
to "parm" it works just fine.
Thanks, Matt
-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx]
On Behalf Of RNewton@xxxxxxxxxxxxxxxxx
Sent: Tuesday, November 08, 2011 8:45 AM
To: Rational Developer for IBM i / Websphere Development Studio Client
forSystem i & iSeries
Subject: Re: [WDSCI-L] LPEX FreeMarker Template Plugin (was: Re:
CodeSnippets)
All,
I've added a validation option to the tools menu of the Template
Builder.
This should help in making sure that a template does not have any bad
variable references before deployment.
Thanks,
Robert Newton
Estes IT
System Architect
804-353-1900 x2256
rnewton@xxxxxxxxxxxxxxxxx
From:
RNewton@xxxxxxxxxxxxxxxxx
To:
Rational Developer for IBM i / Websphere Development Studio Client for
System i & iSeries <wdsci-l@xxxxxxxxxxxx>
Date:
11/07/2011 11:42 AM
Subject:
[WDSCI-L] LPEX FreeMarker Template Plugin (was: Re: Code Snippets)
Sent by:
wdsci-l-bounces@xxxxxxxxxxxx
All,
The template and snippets features in RDP are not very good and by
limiting usage to only free format sections of a source member it falls
short of being a complete template solution for RPG. One of the most
problematic examples of this for me is the fixed format P specs for
procedures. Without support for templates outside of free we cannot
develop a shop standard procedure template.
In order to overcome these limitations, I developed a new template
plugin
for the LPEX editor. The plugin allows a developer to define a template
with replaceable variables, looping constructs, and much more. It
captures
data for replacement variables by rendering forms dynamically with
support
for up to 4 different input types. I've also developed a template
builder
application to run on Windows and ease the creation of templates with
embedded prompt definitions.
How to get it
The entire project including the source code for the plugin (Java) as
wells as the template builder (C#) are available free of charge by
browsing to the project page hosted on Google code below. Download
binaries on the downloads page and follow RDP install steps on the
project
wiki or within the plugin zip file's Installation.txt. I am working on
an
installer that should make this easier in the future.
http://code.google.com/p/lpex-freemarker-template-plugin/
How it works
Using ctrl-enter from anywhere in a source member will present a list of
templates for that language from your hard drive (these parser
associations is configurable). Selecting a template renders a form (or
series of forms) based on the prompt definition within the chosen
template. Filling out the form then hitting enter will merge the
provided
data with the template (using the FreeMarker template engine) and output
the resulting text to the cursor position of the current source member.
The prompt definition is defined using XML within the first FTL comment
found in the template file. More details about the template format can
be
found in the project wiki.
http://code.google.com/p/lpex-freemarker-template-plugin/wiki/CreatingAN
ewTemplate
Thanks,
Robert Newton
Estes IT
System Architect
804-353-1900 x2256
rnewton@xxxxxxxxxxxxxxxxx
From:
RNewton@xxxxxxxxxxxxxxxxx
To:
wdsci-l@xxxxxxxxxxxx
Date:
09/16/2011 10:50 AM
Subject:
[WDSCI-L] Code Snippets
Sent by:
wdsci-l-bounces@xxxxxxxxxxxx
We are not satisfied with the snippets and templates features of RDPi
for
our RPG programmers and are looking for another solution.
Requirements:
Injecting a block of code should be capable from content assist
(ctrl-space) regardless of whether the cursor is in a free format block
or
not.
If replaceable variables are found in the code block, it should present
an
interface for filling those values in.
Filling in replaceable variable values should be able to be done all
from
the keyboard without mouse interaction.
Code blocks must be pulled in from a central repository; the plugin must
not source them from the local PC
Is there a plugin out there that can do this already in RDPi or is it
possible to be developed as a plugin?
Can anyone point us in a good direction?
Thanks,
Robert Newton
Estes IT
System Architect
804-353-1900 x2256
rnewton@xxxxxxxxxxxxxxxxx
For 80 Years ? Delivering Solutions that Exceed Expectations.
This communication and any transmitted documents are intended to be
confidential. If there is a problem with this transmission, please
contact
the sender. If the reader of this message is not the intended recipient,
or the employee or agent responsible to deliver it to the intended
recipient, you are hereby notified that any dissemination, distribution
or
copying of this communication is strictly prohibited.
--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/wdsci-l.
For 80 Years ? Delivering Solutions that Exceed Expectations.
This communication and any transmitted documents are intended to be
confidential. If there is a problem with this transmission, please
contact
the sender. If the reader of this message is not the intended recipient,
or the employee or agent responsible to deliver it to the intended
recipient, you are hereby notified that any dissemination, distribution
or
copying of this communication is strictly prohibited.
--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/wdsci-l.
For 80 Years ? Delivering Solutions that Exceed Expectations.
This communication and any transmitted documents are intended to be
confidential. If there is a problem with this transmission, please
contact
the sender. If the reader of this message is not the intended recipient,
or the employee or agent responsible to deliver it to the intended
recipient, you are hereby notified that any dissemination, distribution
or
copying of this communication is strictly prohibited.
--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/wdsci-l.
--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/wdsci-l.
For 80 Years ? Delivering Solutions that Exceed Expectations.
This communication and any transmitted documents are intended to be
confidential. If there is a problem with this transmission, please
contact
the sender. If the reader of this message is not the intended recipient,
or the employee or agent responsible to deliver it to the intended
recipient, you are hereby notified that any dissemination, distribution
or
copying of this communication is strictly prohibited.
--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/wdsci-l.
--
This is the Rational Developer for IBM i / Websphere Development Studio
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/wdsci-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.