[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> <CAPTION LABEL="File \
specification"><br> \
<FILE_ENTRY LABEL="File 1" VARNAME="from" \
EVAL="buffer.getPath()" /><br> \
<FILE_ENTRY LABEL="File 2" VARNAME="to" \
EVAL="( buffer.getPrev()).getPath()" /><br> \
<FILE_ENTRY LABEL="File 3" \
VARNAME="to2" EVAL="((buffer.getPrev()).getPrev()).getPath()" \
/><br> </CAPTION><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> <<a \
href="mailto:elberry@gmail.com">elberry@gmail.com</a>> 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> 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 <<a \
href="mailto:psmanoj@gmail.com">psmanoj@gmail.com</a>> wrote:<br>> I want to \
setup Console> Commando for calling a Compare Tool which would<br>> compare 2 \
files, there 2 files would be opened in the jEdit. <br>><br>> For this, I want \
to setup 2 drop-down list, each of which would have all the<br>> files opened in \
the jEdit.<br>><br>> How would I get list of files which are opened in the \
jEdit.<br>><br>> I can get the current buffer using " \
buffer.getPath()", but how to get all<br>> the opened files in the jEdit \
?<br>><br>><br>> Thank you and appreciate your help.<br>> Manoj<br>> \
--<br>> Let your presence make difference to the world! <br>> \
-------------------------------------------------------------------------<br>> \
Take Surveys. Earn Cash. Influence the Future of IT<br>> Join SourceForge.net's \
Techsay panel and you'll get the chance to share your <br>> opinions on IT & \
business topics through brief surveys -- and earn cash<br>> <a \
href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE \
V">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV \
</a><br>><br>> --<br>> \
-----------------------------------------------<br>> jEdit Users' List<br>> <a \
href="mailto:jEdit-users@lists.sourceforge.net">jEdit-users@lists.sourceforge.net</a><br>> \
<a href="https://lists.sourceforge.net/lists/listinfo/jedit-users"> \
https://lists.sourceforge.net/lists/listinfo/jedit-users</a><br>><br>><br>><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