01: /*
02: * VFSUpdate.java - A path has changed
03: * Copyright (C) 2000 Slava Pestov
04: *
05: * This program is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU General Public License
07: * as published by the Free Software Foundation; either version 2
08: * of the License, or any later version.
09: *
10: * This program is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13: * GNU General Public License for more details.
14: *
15: * You should have received a copy of the GNU General Public License
16: * along with this program; if not, write to the Free Software
17: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18: */
19:
20: package org.gjt.sp.jedit.msg;
21:
22: import org.gjt.sp.jedit.*;
23:
24: /**
25: * Message sent when a file or directory changes.
26: * @author Slava Pestov
27: * @version $Id: VFSUpdate.java 4151 2002-05-14 07:34:55Z spestov $
28: *
29: * @since jEdit 2.6pre4
30: */
31: public class VFSUpdate extends EBMessage {
32: /**
33: * Creates a VFS update message.
34: * @param path The path in question
35: */
36: public VFSUpdate(String path) {
37: super (null);
38:
39: if (path == null)
40: throw new NullPointerException("Path must be non-null");
41:
42: this .path = path;
43: }
44:
45: /**
46: * Returns the path that changed.
47: */
48: public String getPath() {
49: return path;
50: }
51:
52: public String paramString() {
53: return "path=" + path + "," + super .paramString();
54: }
55:
56: // private members
57: private String path;
58: }
|