KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > gjt > sp > jedit > msg > BufferChanging


1 /*
2  * BufferChanging.java - Buffer changing (specialized Edit Pane update message)
3  * :tabSize=8:indentSize=8:noTabs=false:
4  * :folding=explicit:collapseFolds=1:
5  *
6  * Copyright (C) 2006 Alan Ezust
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21  */

22  
23 package org.gjt.sp.jedit.msg;
24
25 import org.gjt.sp.jedit.Buffer;
26 import org.gjt.sp.jedit.EditPane;
27
28 /** An EBMessage sent by the EditPane just before the buffer changes.
29  *
30  * @since jEdit 4.3pre4
31  * @version $Id: BufferChanging.java 7168 2006-10-04 03:02:45Z ezust $
32  */

33 public class BufferChanging extends EditPaneUpdate
34 {
35     /**
36      *
37      * @param editPane the editPane that sent the message
38      * @param newBuffer the buffer that will soon be displayed.
39      */

40     public BufferChanging(EditPane editPane, Buffer newBuffer) {
41         super(editPane, BUFFER_CHANGING);
42         m_buffer = newBuffer;
43     }
44     
45     public Buffer getBuffer() {
46         return m_buffer;
47     }
48
49     private Buffer m_buffer;
50 }
51
Popular Tags