01: package org.acm.seguin.completer;
02:
03: /*
04: * Copyright (c) 2002, Beau Tateyama
05: *
06: * This program is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU General Public License
08: * as published by the Free Software Foundation; either version 2
09: * of the License, or any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19: */
20:
21: import org.gjt.sp.jedit.EBComponent;
22: import org.gjt.sp.jedit.EBMessage;
23: import java.io.File;
24: import org.gjt.sp.jedit.*;
25:
26: //import anthelper.utils.JEditLogger;
27:
28: public class ContextUpdateMessage extends EBMessage {
29: Context _context = null;
30:
31: public ContextUpdateMessage(EBComponent argSource,
32: Context argContext) {
33: super (argSource);
34: _context = argContext;
35: }
36:
37: public File getBuildFile() {
38: return _context.getBuildFile();
39: }
40:
41: public String getClassPath() {
42: return _context.getClassPath();
43: }
44:
45: public File getOutputDirectory() {
46: return _context.getOutputDirectory();
47: }
48:
49: public String getSourcePath() {
50: return _context.getSourcePath();
51: }
52:
53: public ClassNameCache getClassNameCache() {
54: return _context.getClassNameCache();
55: }
56:
57: // public boolean getSaveBeforeRun(){ return _context.getSaveBeforeRun(); }
58: // public boolean getSyncToSpeedJava(){ return _context.getSyncToSpeedJava(); }
59: // public long getLastMod(){ return _context.getLastMod(); }
60: // public Project getProject(){ return _context.getProject(); }
61:
62: public String toString() {
63: String NL = "\n", TAB = "\t";
64: StringBuffer sb = new StringBuffer("[" + super .toString() + "]"
65: + NL);
66: sb.append(_context.toString());
67: return sb.toString();
68: }
69:
70: public static void main(String[] args) {
71: try {
72: } catch (Throwable t) {
73: t.printStackTrace();
74: }
75: }
76:
77: }
|