Availability on NetRexxJe 1.0.1. Compatible with latest JEdit

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Availability on NetRexxJe 1.0.1. Compatible with latest JEdit

drequena

Hi All,

Please find bellow links to this release which is compatible with JEdit
Versions 4.3x

Note that this distribution doesn't include NetRexxC proper so you'll need
to install manually. Just
copy NetRexxJe.jar and NetRexxC.jar to your JEdit's installation jars
directory. On Windows
that would be C:\Documents and Settings\username\.jedit\jars, on Linux/unix
probably
/home/username/.jedit/jars

Please come back with any bugs. I hope I didn't forget to package any
files...

Binary release:
http://personales.ya.com/drequena/NetRexxJe-101bin.zip

Binary plus source as mandated by GPL v2
http://personales.ya.com/drequena/NetRexxJe-101bin+src.zip

If anyone has any pointers as to how to contact Satguru P Srivastava I'll
be much grateful.

Saludos / Kind regards,
David Requena

Grupo Indukern, Sistemas y Comunicaciones


________________________________________________________________________
Antes de imprimir este e-mail, piense si es necesario hacerlo: El
medioambiente es cosa de todos.
Before printing this email please think twice if it?s really necessary: We
all should protect our environment!


______________________________________________
Este correo electr?nico puede contener informaci?n confidencial y/o
privilegiada. Si usted no es el destinatario adecuado o ha recibido este
correo por error o tiene conocimiento del mismo por cualquier motivo,
rogamos nos lo comunique de inmediato, por esta misma direcci?n electr?nica
o por tel?fono al 902 502 500, y que proceda a su eliminaci?n. Toda copia,
revelaci?n o distribuci?n de esta informaci?n queda terminantemente
prohibida pudiendo incurrir en responsabilidades legales. El presente
documento y sus anexos que se entregan pueden contener datos de car?cter
personal, advirti?ndole de su obligaci?n de conocer y cumplir lo
establecido en la Ley Org?nica 15/1999, de 13 de diciembre, de protecci?n
de datos de car?cter personal y el Real Decreto 1720/2007, de 21 de
diciembre por el que se aprueba el Reglamento de Desarrollo de la LOPD.
___________________________________________________
Privileged / Confidential information may be contained in this message. If
you are not the addressee indicated in this message you may not copy or
deliver this message to anyone. In such case, you should destroy this
message, and notify us immediately, by this same e?mail or by phone at 902
502 500. The copy, disclosure or distribution of this information is
strictly forbidden, falling into legal responsibilities. This message and
its attached may contain personal details, warning you about your duty of
knowing and carrying out the established in the Organical Law 15/1999,
december 13th, about personal details protection, the Order in Council
1720/2007, december 21th, which approves the deployment of the LOPD.
___________________________________________________


Reply | Threaded
Open this post in threaded view
|

Availability on NetRexxJe 1.0.1. Compatible with latest JEdit

Jerry McBride
On Wednesday 05 August 2009 09:01:43 am [hidden email] wrote:
> Hi All,
>
> Please find bellow links to this release which is compatible with JEdit
> Versions 4.3x
>

-----snip----


Thank you, Jerry

--

*****************************************************************************
                                       
                             From the desk of:
                             Jerome D. McBride
                                       
   17:20:29 up 15 days, 21:24,  5 users,  load average: 0.40, 0.45, 0.37
 
*****************************************************************************
Reply | Threaded
Open this post in threaded view
|

Availability on NetRexxJe 1.0.1. Compatible with latest JEdit

Kermit Kiser
In reply to this post by drequena
Thank you David. This one works for me. I am now able to run JEdit
4.3pre17 with the NetRexxJe 1.0.1 version! Compile, generate Java code
and run program all worked fine.

On a related topic - I was never able to make NetRexx scripting work
with the SuperScript plugin under JEdit 4.2 - Does anyone know how to
make it work with 4.3?

-- Kermit


On 8/5/2009 6:01 AM, [hidden email] wrote:
> Hi All,
>
> Please find bellow links to this release which is compatible with JEdit
> Versions 4.3x
>  
Reply | Threaded
Open this post in threaded view
|

Availability on NetRexxJe 1.0.1. Compatible with latest JEdit

drequena
Hi Kermit,

Glad NetRexxJe works for you now.
Only places where major changes where made where the pluging load subsistem
and the nrxParser class. So these're the areas to look for bugs introduced
by me..

Now that if been looking at this codebase again, if been playing a bit with
it. I modified NetRexxJe's own build system to use the ant-netrexxc task
and it seems to work quite ok. May be adding some Project Viewer plugin
integration code would provide for a minimal project based NetRexx IDE.
I'll be looking into this in the next few weeks.

I've been looking a bit into that SuperScript plugin too. To be honest I
didn't even know of it and doesn't seem all that useful to me but... well
this seems to be more of a bsf's problem than superscript's.
I couldn't get standalone bsf to evaluate without errors anything more
complex than 'Hola, amigo' either. You can't even use things like "Say
'hello'"...

Saludos / Kind regards,
David Requena

Grupo Indukern, Sistemas y Comunicaciones



                                                                           
             Kermit Kiser                                                  
             <infire@kermitkis                                            
             er.com>                                                  Para
             Enviado por:              IBM Netrexx                        
             ibm-netrexx-bounc         <[hidden email]>      
             [hidden email]                                          cc
             m                                                            
                                                                    Asunto
                                       Re: [Ibm-netrexx] Availability on  
             08/08/2009 02:30          NetRexxJe 1.0.1. Compatible with    
                                       latest JEdit                        
                                                                           
                Por favor,                                                
                responda a                                                
                IBM Netrexx                                                
             <ibm-netrexx@hurs                                            
               ley.ibm.com>                                                
                                                                           
                                                                           




Thank you David. This one works for me. I am now able to run JEdit
4.3pre17 with the NetRexxJe 1.0.1 version! Compile, generate Java code
and run program all worked fine.

On a related topic - I was never able to make NetRexx scripting work
with the SuperScript plugin under JEdit 4.2 - Does anyone know how to
make it work with 4.3?

-- Kermit


On 8/5/2009 6:01 AM, [hidden email] wrote:
> Hi All,
>
> Please find bellow links to this release which is compatible with JEdit
> Versions 4.3x
>
_______________________________________________
Ibm-netrexx mailing list
[hidden email]




________________________________________________________________________
Antes de imprimir este e-mail, piense si es necesario hacerlo: El
medioambiente es cosa de todos.
Before printing this email please think twice if it?s really necessary: We
all should protect our environment!


______________________________________________
Este correo electr?nico puede contener informaci?n confidencial y/o
privilegiada. Si usted no es el destinatario adecuado o ha recibido este
correo por error o tiene conocimiento del mismo por cualquier motivo,
rogamos nos lo comunique de inmediato, por esta misma direcci?n electr?nica
o por tel?fono al 902 502 500, y que proceda a su eliminaci?n. Toda copia,
revelaci?n o distribuci?n de esta informaci?n queda terminantemente
prohibida pudiendo incurrir en responsabilidades legales. El presente
documento y sus anexos que se entregan pueden contener datos de car?cter
personal, advirti?ndole de su obligaci?n de conocer y cumplir lo
establecido en la Ley Org?nica 15/1999, de 13 de diciembre, de protecci?n
de datos de car?cter personal y el Real Decreto 1720/2007, de 21 de
diciembre por el que se aprueba el Reglamento de Desarrollo de la LOPD.
___________________________________________________
Privileged / Confidential information may be contained in this message. If
you are not the addressee indicated in this message you may not copy or
deliver this message to anyone. In such case, you should destroy this
message, and notify us immediately, by this same e?mail or by phone at 902
502 500. The copy, disclosure or distribution of this information is
strictly forbidden, falling into legal responsibilities. This message and
its attached may contain personal details, warning you about your duty of
knowing and carrying out the established in the Organical Law 15/1999,
december 13th, about personal details protection, the Order in Council
1720/2007, december 21th, which approves the deployment of the LOPD.
___________________________________________________


Reply | Threaded
Open this post in threaded view
|

Availability on NetRexxJe 1.0.1. Compatible with latest JEdit

pwarren
Dear David,

Thanks for this.  I have just downloaded JEdit 4.3pre17 and installed  
NetRexxJe 1.0.1, and (after a little faffing around to get JEdit to  
load the other plugins NetRexxJe uses) it all seems to work for me  
(Mac OSX 10.5).

I have used NetRexxJe (until now on JEdit 4.1/4.2) for quite a while.  
It is simple and effective (for a simple user like me!), but I was  
increasingly concerned that its days were numbered.  It's good to know  
there are kind (and smart) folk out there willing to help out.  Thanks  
to you, and of course Satguru Srivastava for the original.

Phil Warren
University of Sheffield
UK


On 12 Aug 2009, at 11:00, [hidden email] wrote:

> Hi Kermit,
>
> Glad NetRexxJe works for you now.
> Only places where major changes where made where the pluging load  
> subsistem
> and the nrxParser class. So these're the areas to look for bugs  
> introduced
> by me..
>
> Now that if been looking at this codebase again, if been playing a  
> bit with
> it. I modified NetRexxJe's own build system to use the ant-netrexxc  
> task
> and it seems to work quite ok. May be adding some Project Viewer  
> plugin
> integration code would provide for a minimal project based NetRexx  
> IDE.
> I'll be looking into this in the next few weeks.
>
> I've been looking a bit into that SuperScript plugin too. To be  
> honest I
> didn't even know of it and doesn't seem all that useful to me but...  
> well
> this seems to be more of a bsf's problem than superscript's.
> I couldn't get standalone bsf to evaluate without errors anything more
> complex than 'Hola, amigo' either. You can't even use things like "Say
> 'hello'"...
>
> Saludos / Kind regards,
> David Requena
>
> Grupo Indukern, Sistemas y Comunicaciones
>
>
>
>
>             Kermit Kiser
>             <infire@kermitkis
>             er.com>                                                  
> Para
>             Enviado por:              IBM Netrexx
>             ibm-netrexx-bounc         <[hidden email]>
>              
> [hidden email]                                          cc
>             m
>                                                                    
> Asunto
>                                       Re: [Ibm-netrexx] Availability  
> on
>             08/08/2009 02:30          NetRexxJe 1.0.1. Compatible with
>                                       latest JEdit
>
>                Por favor,
>                responda a
>                IBM Netrexx
>             <ibm-netrexx@hurs
>               ley.ibm.com>
>
>
>
>
>
>
> Thank you David. This one works for me. I am now able to run JEdit
> 4.3pre17 with the NetRexxJe 1.0.1 version! Compile, generate Java code
> and run program all worked fine.
>
> On a related topic - I was never able to make NetRexx scripting work
> with the SuperScript plugin under JEdit 4.2 - Does anyone know how to
> make it work with 4.3?
>
> -- Kermit
>
>
> On 8/5/2009 6:01 AM, [hidden email] wrote:
>> Hi All,
>>
>> Please find bellow links to this release which is compatible with  
>> JEdit
>> Versions 4.3x
>>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
>
>
>
>
> ________________________________________________________________________
> Antes de imprimir este e-mail, piense si es necesario hacerlo: El
> medioambiente es cosa de todos.
> Before printing this email please think twice if it?s really  
> necessary: We
> all should protect our environment!
>
>
> ______________________________________________
> Este correo electr?nico puede contener informaci?n confidencial y/o
> privilegiada. Si usted no es el destinatario adecuado o ha recibido  
> este
> correo por error o tiene conocimiento del mismo por cualquier motivo,
> rogamos nos lo comunique de inmediato, por esta misma direcci?n  
> electr?nica
> o por tel?fono al 902 502 500, y que proceda a su eliminaci?n. Toda  
> copia,
> revelaci?n o distribuci?n de esta informaci?n queda terminantemente
> prohibida pudiendo incurrir en responsabilidades legales. El presente
> documento y sus anexos que se entregan pueden contener datos de  
> car?cter
> personal, advirti?ndole de su obligaci?n de conocer y cumplir lo
> establecido en la Ley Org?nica 15/1999, de 13 de diciembre, de  
> protecci?n
> de datos de car?cter personal y el Real Decreto 1720/2007, de 21 de
> diciembre por el que se aprueba el Reglamento de Desarrollo de la  
> LOPD.
> ___________________________________________________
> Privileged / Confidential information may be contained in this  
> message. If
> you are not the addressee indicated in this message you may not copy  
> or
> deliver this message to anyone. In such case, you should destroy this
> message, and notify us immediately, by this same e?mail or by phone  
> at 902
> 502 500. The copy, disclosure or distribution of this information is
> strictly forbidden, falling into legal responsibilities. This  
> message and
> its attached may contain personal details, warning you about your  
> duty of
> knowing and carrying out the established in the Organical Law 15/1999,
> december 13th, about personal details protection, the Order in Council
> 1720/2007, december 21th, which approves the deployment of the LOPD.
> ___________________________________________________
>
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
>


Reply | Threaded
Open this post in threaded view
|

Availability on NetRexxJe 1.0.1. Compatible with latest JEdit

drequena
Glad it works for you too, Phil.
On OS X!!

It wasn't all that difficult, really. I got into this some time ago just as
a way to learn NetRexx working with some real code :-)
In the end I learned more about general jEdit plugin development than about
NetRexx itself. And then, NetRexxJe coding
style is mor like programming java in NetRexx. You know, using Hasmaps were
NetRexx indexed strings would suffice
and things like this.

Saludos / Kind regards,
David Requena

Grupo Indukern, Sistemas y Comunicaciones


[hidden email] wrote on 12/08/2009 14:10:28:

> Dear David,
>
> Thanks for this.  I have just downloaded JEdit 4.3pre17 and installed
> NetRexxJe 1.0.1, and (after a little faffing around to get JEdit to
> load the other plugins NetRexxJe uses) it all seems to work for me
> (Mac OSX 10.5).
>
> I have used NetRexxJe (until now on JEdit 4.1/4.2) for quite a while.
> It is simple and effective (for a simple user like me!), but I was
> increasingly concerned that its days were numbered.  It's good to know
> there are kind (and smart) folk out there willing to help out.  Thanks
> to you, and of course Satguru Srivastava for the original.
>
> Phil Warren
> University of Sheffield
> UK
>
>


________________________________________________________________________
Antes de imprimir este e-mail, piense si es necesario hacerlo: El
medioambiente es cosa de todos.
Before printing this email please think twice if it?s really necessary: We
all should protect our environment!


______________________________________________
Este correo electr?nico puede contener informaci?n confidencial y/o
privilegiada. Si usted no es el destinatario adecuado o ha recibido este
correo por error o tiene conocimiento del mismo por cualquier motivo,
rogamos nos lo comunique de inmediato, por esta misma direcci?n electr?nica
o por tel?fono al 902 502 500, y que proceda a su eliminaci?n. Toda copia,
revelaci?n o distribuci?n de esta informaci?n queda terminantemente
prohibida pudiendo incurrir en responsabilidades legales. El presente
documento y sus anexos que se entregan pueden contener datos de car?cter
personal, advirti?ndole de su obligaci?n de conocer y cumplir lo
establecido en la Ley Org?nica 15/1999, de 13 de diciembre, de protecci?n
de datos de car?cter personal y el Real Decreto 1720/2007, de 21 de
diciembre por el que se aprueba el Reglamento de Desarrollo de la LOPD.
___________________________________________________
Privileged / Confidential information may be contained in this message. If
you are not the addressee indicated in this message you may not copy or
deliver this message to anyone. In such case, you should destroy this
message, and notify us immediately, by this same e?mail or by phone at 902
502 500. The copy, disclosure or distribution of this information is
strictly forbidden, falling into legal responsibilities. This message and
its attached may contain personal details, warning you about your duty of
knowing and carrying out the established in the Organical Law 15/1999,
december 13th, about personal details protection, the Order in Council
1720/2007, december 21th, which approves the deployment of the LOPD.
___________________________________________________


Reply | Threaded
Open this post in threaded view
|

Availability on NetRexxJe 1.0.1. Compatible with latest JEdit

George Hovey-2
In reply to this post by drequena
Hi David,

Re jEdit Superscript plugin --

I would give a somewhat significant part of my anatomy for the ability to
write jEdit plugins in NetRexx!  I've tried it and I can't see that any of
the "automatic" variables related to buffers, text area, etc are passed to
NetRexx, though the documentation claims they are.  I didn't try the jEdit
forum because I've been reading it for years and I've never seen NetRexx
mentioned.

Any light you could shed on this would be greatly appreciated.

Regards,
George Hovey

On Wed, Aug 12, 2009 at 3:00 AM, <[hidden email]> wrote:

> Hi Kermit,
>
> Glad NetRexxJe works for you now.
> Only places where major changes where made where the pluging load subsistem
> and the nrxParser class. So these're the areas to look for bugs introduced
> by me..
>
> Now that if been looking at this codebase again, if been playing a bit with
> it. I modified NetRexxJe's own build system to use the ant-netrexxc task
> and it seems to work quite ok. May be adding some Project Viewer plugin
> integration code would provide for a minimal project based NetRexx IDE.
> I'll be looking into this in the next few weeks.
>
> I've been looking a bit into that SuperScript plugin too. To be honest I
> didn't even know of it and doesn't seem all that useful to me but... well
> this seems to be more of a bsf's problem than superscript's.
> I couldn't get standalone bsf to evaluate without errors anything more
> complex than 'Hola, amigo' either. You can't even use things like "Say
> 'hello'"...
>
> Saludos / Kind regards,
> David Requena
>
> Grupo Indukern, Sistemas y Comunicaciones
>
>
>
>
>              Kermit Kiser
>             <infire@kermitkis
>             er.com>                                                  Para
>             Enviado por:              IBM Netrexx
>             ibm-netrexx-bounc         <[hidden email]>
>             [hidden email]                                          cc
>             m
>                                                                    Asunto
>                                       Re: [Ibm-netrexx] Availability on
>             08/08/2009 02:30          NetRexxJe 1.0.1. Compatible with
>                                       latest JEdit
>
>                Por favor,
>                responda a
>                IBM Netrexx
>             <ibm-netrexx@hurs
>               ley.ibm.com>
>
>
>
>
>
>
> Thank you David. This one works for me. I am now able to run JEdit
> 4.3pre17 with the NetRexxJe 1.0.1 version! Compile, generate Java code
> and run program all worked fine.
>
> On a related topic - I was never able to make NetRexx scripting work
> with the SuperScript plugin under JEdit 4.2 - Does anyone know how to
> make it work with 4.3?
>
> -- Kermit
>
>
> On 8/5/2009 6:01 AM, [hidden email] wrote:
> > Hi All,
> >
> > Please find bellow links to this release which is compatible with JEdit
> > Versions 4.3x
> >
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
>
>
>
>
> ________________________________________________________________________
> Antes de imprimir este e-mail, piense si es necesario hacerlo: El
> medioambiente es cosa de todos.
> Before printing this email please think twice if it?s really necessary: We
> all should protect our environment!
>
>
> ______________________________________________
> Este correo electr?nico puede contener informaci?n confidencial y/o
> privilegiada. Si usted no es el destinatario adecuado o ha recibido este
> correo por error o tiene conocimiento del mismo por cualquier motivo,
> rogamos nos lo comunique de inmediato, por esta misma direcci?n electr?nica
> o por tel?fono al 902 502 500, y que proceda a su eliminaci?n. Toda copia,
> revelaci?n o distribuci?n de esta informaci?n queda terminantemente
> prohibida pudiendo incurrir en responsabilidades legales. El presente
> documento y sus anexos que se entregan pueden contener datos de car?cter
> personal, advirti?ndole de su obligaci?n de conocer y cumplir lo
> establecido en la Ley Org?nica 15/1999, de 13 de diciembre, de protecci?n
> de datos de car?cter personal y el Real Decreto 1720/2007, de 21 de
> diciembre por el que se aprueba el Reglamento de Desarrollo de la LOPD.
> ___________________________________________________
> Privileged / Confidential information may be contained in this message. If
> you are not the addressee indicated in this message you may not copy or
> deliver this message to anyone. In such case, you should destroy this
> message, and notify us immediately, by this same e?mail or by phone at 902
> 502 500. The copy, disclosure or distribution of this information is
> strictly forbidden, falling into legal responsibilities. This message and
> its attached may contain personal details, warning you about your duty of
> knowing and carrying out the established in the Organical Law 15/1999,
> december 13th, about personal details protection, the Order in Council
> 1720/2007, december 21th, which approves the deployment of the LOPD.
> ___________________________________________________
>
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns.hursley.ibm.com/pipermail/ibm-netrexx/attachments/20090812/e50583af/attachment.html
Reply | Threaded
Open this post in threaded view
|

Building jEdit plugins in NetRexx

drequena
Dear George,

hmm... this must be a non NetRexx specific issue as writting jEdit Plugins
in NetRexx differs in no way form doing it in java. Except for that, well,
you code your classes in NetRexx ;-)

I won't go into a full description of the process now, which anyway would
be off topic on this list I think, but in general:

a - You setup some property and xml files which conform the glue bethween
jEdit and your pluguin. These indicate jEdit which classes to load and
which methods to call at different points in time.
b - You code your classes extending certain superclasses and/or
implementing certain interfaces so jEdit will call key methods with
appropiate parameters when needed.
c - Some functionality is just provided by the classpath setup by jEdit.

This way, in the context of the NetRexxJe plugin, following examples apply:

a - the docables.xml file contains the following snippet:

      <DOCKABLE NAME="NetRexxJe">
            new NetRexxJe(view, position);
      </DOCKABLE>

      This way jEdit knows to instantiate class NetRexxJe when the plugin
activates.
      Note that the first argument to the constructor is an
org.gjt.sp.jedit.View instance
      which provides access to EditPanes, Buffers, and whatnot

b - NetRexxJe class header is like class NetRexxJe adapter extends JPanel
implements ActionListener, ComponentListener, EBComponent
      Here, implementing EBComponent allows our class to to receive and
handle messages form jEdit's Edit Bus

c - By importing needed packages or using fully qualified class names you
can call static methods directly as in

      import org.gjt.sp.jedit.jEdit

      ... some code ...

      isProjectModeActivated = jEdit.getBooleanProperty(
"plugin.netrexxje.UseProjects")


There's not much else involved. Try to have a look at NetRexxJe's source
which is all NetRexx or try to rewrite a simple plugin such as QuickNotepad
so you gan get the feel.
I'll be whilling to help with any specific doubts which my arise.

Saludos / Kind regards,
David Requena

Grupo Indukern, Sistemas y Comunicaciones


[hidden email] wrote on 12/08/2009 17:32:44:

> Hi David,
>
> Re jEdit Superscript plugin --
>
> I would give a somewhat significant part of my anatomy for the
> ability to write jEdit plugins in NetRexx!? I've tried it and I
> can't see that any of the "automatic" variables related to buffers,
> text area, etc are passed to NetRexx, though the documentation
> claims they are.? I didn't try the jEdit forum because I've been
> reading it for years and I've never seen NetRexx mentioned.
>
> Any light you could shed on this would be greatly appreciated.
>
> Regards,
> George Hovey

> ... snip ...

________________________________________________________________________
Antes de imprimir este e-mail, piense si es necesario hacerlo: El
medioambiente es cosa de todos.
Before printing this email please think twice if it?s really necessary: We
all should protect our environment!


______________________________________________
Este correo electr?nico puede contener informaci?n confidencial y/o
privilegiada. Si usted no es el destinatario adecuado o ha recibido este
correo por error o tiene conocimiento del mismo por cualquier motivo,
rogamos nos lo comunique de inmediato, por esta misma direcci?n electr?nica
o por tel?fono al 902 502 500, y que proceda a su eliminaci?n. Toda copia,
revelaci?n o distribuci?n de esta informaci?n queda terminantemente
prohibida pudiendo incurrir en responsabilidades legales. El presente
documento y sus anexos que se entregan pueden contener datos de car?cter
personal, advirti?ndole de su obligaci?n de conocer y cumplir lo
establecido en la Ley Org?nica 15/1999, de 13 de diciembre, de protecci?n
de datos de car?cter personal y el Real Decreto 1720/2007, de 21 de
diciembre por el que se aprueba el Reglamento de Desarrollo de la LOPD.
___________________________________________________
Privileged / Confidential information may be contained in this message. If
you are not the addressee indicated in this message you may not copy or
deliver this message to anyone. In such case, you should destroy this
message, and notify us immediately, by this same e?mail or by phone at 902
502 500. The copy, disclosure or distribution of this information is
strictly forbidden, falling into legal responsibilities. This message and
its attached may contain personal details, warning you about your duty of
knowing and carrying out the established in the Organical Law 15/1999,
december 13th, about personal details protection, the Order in Council
1720/2007, december 21th, which approves the deployment of the LOPD.
___________________________________________________


Reply | Threaded
Open this post in threaded view
|

Building jEdit plugins in NetRexx

George Hovey-2
Dear David,

Thank you for your thoughtful and detailed response to my query about jEdit
plugins.  Unfortunately, I phrased my query imprecisely.  I am not
necessarily interested in writing a plugin in the strict sense, though that
is the functionality I need, primarily to leverage jEdit's coloring engine,
as an adjunct to a product of mine.

I am leery of the plugin approach because I see that its API cannot be
counted on from release to release and I am afraid of creating a maintenance
nightmare.

My thought is that the scripting approach might be more trustworthy since,
hopefully, the jEdit developers would bend over backwards to avoid breaking
end user-written macros.  Since I want to write in NetRexx, SuperScript
sounded worth exploring, but given what you have learned it doesn't seem
possible to even try it.  So I think I will work on an approach that is not
directly coupled to jEdit.

Again, thanks for your help
George Hovey

P.S.  I will keep your plugin "mini tutorial" handy as it is very
illuminating.



On Thu, Aug 13, 2009 at 2:17 AM, <[hidden email]> wrote:

> Dear George,
>
> hmm... this must be a non NetRexx specific issue as writting jEdit Plugins
> in NetRexx differs in no way form doing it in java. Except for that, well,
> you code your classes in NetRexx ;-)
>
> I won't go into a full description of the process now, which anyway would
> be off topic on this list I think, but in general:
>
> a - You setup some property and xml files which conform the glue bethween
> jEdit and your pluguin. These indicate jEdit which classes to load and
> which methods to call at different points in time.
> b - You code your classes extending certain superclasses and/or
> implementing certain interfaces so jEdit will call key methods with
> appropiate parameters when needed.
> c - Some functionality is just provided by the classpath setup by jEdit.
>
> This way, in the context of the NetRexxJe plugin, following examples apply:
>
> a - the docables.xml file contains the following snippet:
>
>      <DOCKABLE NAME="NetRexxJe">
>            new NetRexxJe(view, position);
>      </DOCKABLE>
>
>      This way jEdit knows to instantiate class NetRexxJe when the plugin
> activates.
>      Note that the first argument to the constructor is an
> org.gjt.sp.jedit.View instance
>      which provides access to EditPanes, Buffers, and whatnot
>
> b - NetRexxJe class header is like class NetRexxJe adapter extends JPanel
> implements ActionListener, ComponentListener, EBComponent
>      Here, implementing EBComponent allows our class to to receive and
> handle messages form jEdit's Edit Bus
>
> c - By importing needed packages or using fully qualified class names you
> can call static methods directly as in
>
>      import org.gjt.sp.jedit.jEdit
>
>      ... some code ...
>
>      isProjectModeActivated = jEdit.getBooleanProperty(
> "plugin.netrexxje.UseProjects")
>
>
> There's not much else involved. Try to have a look at NetRexxJe's source
> which is all NetRexx or try to rewrite a simple plugin such as QuickNotepad
> so you gan get the feel.
> I'll be whilling to help with any specific doubts which my arise.
>
> Saludos / Kind regards,
> David Requena
>
> Grupo Indukern, Sistemas y Comunicaciones
>
>
> [hidden email] wrote on 12/08/2009 17:32:44:
>
> > Hi David,
> >
> > Re jEdit Superscript plugin --
> >
> > I would give a somewhat significant part of my anatomy for the
> > ability to write jEdit plugins in NetRexx!  I've tried it and I
> > can't see that any of the "automatic" variables related to buffers,
> > text area, etc are passed to NetRexx, though the documentation
> > claims they are.  I didn't try the jEdit forum because I've been
> > reading it for years and I've never seen NetRexx mentioned.
> >
> > Any light you could shed on this would be greatly appreciated.
> >
> > Regards,
> > George Hovey
>
> > ... snip ...
>
> ________________________________________________________________________
> Antes de imprimir este e-mail, piense si es necesario hacerlo: El
> medioambiente es cosa de todos.
> Before printing this email please think twice if it?s really necessary: We
> all should protect our environment!
>
>
> ______________________________________________
> Este correo electr?nico puede contener informaci?n confidencial y/o
> privilegiada. Si usted no es el destinatario adecuado o ha recibido este
> correo por error o tiene conocimiento del mismo por cualquier motivo,
> rogamos nos lo comunique de inmediato, por esta misma direcci?n electr?nica
> o por tel?fono al 902 502 500, y que proceda a su eliminaci?n. Toda copia,
> revelaci?n o distribuci?n de esta informaci?n queda terminantemente
> prohibida pudiendo incurrir en responsabilidades legales. El presente
> documento y sus anexos que se entregan pueden contener datos de car?cter
> personal, advirti?ndole de su obligaci?n de conocer y cumplir lo
> establecido en la Ley Org?nica 15/1999, de 13 de diciembre, de protecci?n
> de datos de car?cter personal y el Real Decreto 1720/2007, de 21 de
> diciembre por el que se aprueba el Reglamento de Desarrollo de la LOPD.
> ___________________________________________________
> Privileged / Confidential information may be contained in this message. If
> you are not the addressee indicated in this message you may not copy or
> deliver this message to anyone. In such case, you should destroy this
> message, and notify us immediately, by this same e?mail or by phone at 902
> 502 500. The copy, disclosure or distribution of this information is
> strictly forbidden, falling into legal responsibilities. This message and
> its attached may contain personal details, warning you about your duty of
> knowing and carrying out the established in the Organical Law 15/1999,
> december 13th, about personal details protection, the Order in Council
> 1720/2007, december 21th, which approves the deployment of the LOPD.
> ___________________________________________________
>
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns.hursley.ibm.com/pipermail/ibm-netrexx/attachments/20090822/bac08eff/attachment-0001.html