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

List:       jedit-cvs
Subject:    [ jEdit-commits ] SF.net SVN: jedit:[15340]
From:       ezust () users ! sourceforge ! net
Date:       2009-05-26 19:44:42
Message-ID: E1M92Zm-0000wm-P0 () 74yxhf1 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 15340
          http://jedit.svn.sourceforge.net/jedit/?rev=15340&view=rev
Author:   ezust
Date:     2009-05-26 19:44:42 +0000 (Tue, 26 May 2009)

Log Message:
-----------
New macro: send current buffer to next splitpane.

Added Paths:
-----------
    jEdit/trunk/macros/Files/Send_Buffer_To_Next_Split.bsh

Added: jEdit/trunk/macros/Files/Send_Buffer_To_Next_Split.bsh
===================================================================
--- jEdit/trunk/macros/Files/Send_Buffer_To_Next_Split.bsh	                        \
                (rev 0)
+++ jEdit/trunk/macros/Files/Send_Buffer_To_Next_Split.bsh	2009-05-26 19:44:42 UTC \
(rev 15340) @@ -0,0 +1,36 @@
+/*
+ * Send_Buffer_To_Next_Split.bsh
+ * Not very useful unless you are using EditPane-scope buffersets.
+ *    (c) 2009 by Alan Ezust
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with the jEdit program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+  *
+ * Checked for jEdit 4.3 API
+ *
+ */
+
+sendBufferToNextSplit() {
+     if( view.getSplitPane() == null ) return;
+     editPanes = view.getEditPanes();
+     for(src = 0; src < editPanes.length; src++)
+         if(editPane == editPanes[src]) {
+            dest = src + 1;
+            if (dest >= editPanes.length) dest = 0;
+            jEdit.openFile(editPanes[dest], buffer.getPath());
+         }
+}
+
+sendBufferToNextSplit();
+


This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
jEdit-CVS mailing list
jEdit-CVS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-cvs


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

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