[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jedit-devel
Subject:    Re: [ jEdit-devel ] [ jEdit-users ] Help in setting up Commando for
From:       Manoj <psmanoj () gmail ! com>
Date:       2006-11-30 22:16:33
Message-ID: a889a0030611301416m3600d62fmbcd00533e304670b () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I am trying to write a macro to compare 2 files using 3rd party compare
tool, (JDiff is good but not the best).

I am planning to have 2 drop down list which would list all the opened files
in buffer. Is this possible, if yes please let me know.


The closest I could come by my minimal Java knowledge is , having text
fields and setting the value based on buffer.getPrev(), but for this to work
i have to make sure the 2 files which I want to compare should be next to
eachother.

        <CAPTION LABEL="File specification">
            <FILE_ENTRY LABEL="File 1" VARNAME="from" EVAL="buffer.getPath()"
/>
            <FILE_ENTRY LABEL="File 2" VARNAME="to"
EVAL="(buffer.getPrev()).getPath()"
/>
            <FILE_ENTRY LABEL="File 3" VARNAME="to2"
EVAL="((buffer.getPrev()).getPrev()).getPath()"
/>
        </CAPTION>


Any help would be very helpful.

Thanks


On 10/9/06, Eric Berry <elberry@gmail.com> wrote:
>
> Manoj,
>    I'm not sure about the commando part, but you could just use the
> JDiff Plugin which compares any two files you want that are currently
> open in jEdit.
>
> On 10/9/06, Manoj <psmanoj@gmail.com> wrote:
> > I want to setup Console> Commando for calling a Compare Tool which would
> > compare 2 files, there 2 files would be opened in the jEdit.
> >
> > For this, I want to setup 2 drop-down list, each of which would have all
> the
> > files opened in the jEdit.
> >
> > How would I get list of files which are opened in the jEdit.
> >
> > I can get the current buffer using "buffer.getPath()", but how to get
> all
> > the opened files in the jEdit ?
> >
> >
> > Thank you and appreciate your help.
> > Manoj
> > --
> > Let your presence make difference to the world!
> >
> -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys -- and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > --
> > -----------------------------------------------
> > jEdit Users' List
> > jEdit-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jedit-users
> >
> >
> >
>
>
> --
> Learn from the past. Live in the present. Plan for the future.
>



-- 
Let your presence make difference to the world!

[Attachment #5 (text/html)]

<br>I am trying to write a macro to compare 2 files using 3rd party compare tool, \
(JDiff is good but not the best).<br><br>I am planning to have 2 drop down list which \
would list all the opened files in buffer. Is this possible, if yes please let me \
know. <br><br><br>The closest I could come by my minimal Java knowledge is , having \
text fields and setting the value based on buffer.getPrev(), but for this to work i \
have to make sure the 2 files which I want to compare should be next to eachother. \
<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;CAPTION LABEL=&quot;File \
specification&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&lt;FILE_ENTRY LABEL=&quot;File 1&quot; VARNAME=&quot;from&quot; \
EVAL=&quot;buffer.getPath()&quot; /&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &lt;FILE_ENTRY LABEL=&quot;File 2&quot; VARNAME=&quot;to&quot; \
EVAL=&quot;( buffer.getPrev()).getPath()&quot; /&gt;<br>&nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;FILE_ENTRY LABEL=&quot;File 3&quot; \
VARNAME=&quot;to2&quot; EVAL=&quot;((buffer.getPrev()).getPrev()).getPath()&quot; \
/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/CAPTION&gt;<br><br><br> Any help \
would be very helpful.<br><br>Thanks<br><br><br><div><span class="gmail_quote">On \
10/9/06, <b class="gmail_sendername">Eric Berry</b> &lt;<a \
href="mailto:elberry@gmail.com">elberry@gmail.com</a>&gt; wrote:</span> <blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;">Manoj,<br>&nbsp;&nbsp; I'm not sure about the commando \
part, but you could just use the<br>JDiff Plugin which compares any two files you \
want that are currently <br>open in jEdit.<br><br>On 10/9/06, Manoj &lt;<a \
href="mailto:psmanoj@gmail.com">psmanoj@gmail.com</a>&gt; wrote:<br>&gt; I want to \
setup Console&gt; Commando for calling a Compare Tool which would<br>&gt; compare 2 \
files, there 2 files would be opened in the jEdit. <br>&gt;<br>&gt; For this, I want \
to setup 2 drop-down list, each of which would have all the<br>&gt; files opened in \
the jEdit.<br>&gt;<br>&gt; How would I get list of files which are opened in the \
jEdit.<br>&gt;<br>&gt; I can get the current buffer using &quot; \
buffer.getPath()&quot;, but how to get all<br>&gt; the opened files in the jEdit \
?<br>&gt;<br>&gt;<br>&gt; Thank you and appreciate your help.<br>&gt; Manoj<br>&gt; \
--<br>&gt; Let your presence make difference to the world! <br>&gt; \
-------------------------------------------------------------------------<br>&gt; \
Take Surveys. Earn Cash. Influence the Future of IT<br>&gt; Join SourceForge.net's \
Techsay panel and you'll get the chance to share your <br>&gt; opinions on IT &amp; \
business topics through brief surveys -- and earn cash<br>&gt; <a \
href="http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDE \
V">http://www.techsay.com/default.php?page=join.php&amp;p=sourceforge&amp;CID=DEVDEV \
</a><br>&gt;<br>&gt; --<br>&gt; \
-----------------------------------------------<br>&gt; jEdit Users' List<br>&gt; <a \
href="mailto:jEdit-users@lists.sourceforge.net">jEdit-users@lists.sourceforge.net</a><br>&gt; \
<a href="https://lists.sourceforge.net/lists/listinfo/jedit-users"> \
https://lists.sourceforge.net/lists/listinfo/jedit-users</a><br>&gt;<br>&gt;<br>&gt;<br><br><br>--<br>Learn \
from the past. Live in the present. Plan for the \
future.<br></blockquote></div><br><br clear="all"><br>-- <br>Let your presence make \
difference to the world!



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

-- 
-----------------------------------------------
jEdit Developers' List
jEdit-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic