01: /*=============================================================================
02: * Copyright Texas Instruments, Inc., 2002. All Rights Reserved.
03: *
04: * This program is free software; you can redistribute it and/or modify
05: * it under the terms of the GNU General Public License as published by
06: * the Free Software Foundation; either version 2 of the License, or
07: * (at your option) any later version.
08: *
09: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13: *
14: * You should have received a copy of the GNU General Public License
15: * along with this program; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: */
18:
19: package ti.chimera.service;
20:
21: /**
22: * for now this is just here so FileChooser has a way to get the file browser
23: * plugin to manufacture a popup... eventually this should probably make all
24: * file browser service methods available...
25: *
26: * @author Rob Clark
27: * @version 0.1
28: */
29: public abstract class FileBrowser extends ti.chimera.Service {
30: /**
31: * Class Constructor.
32: */
33: public FileBrowser() {
34: super ("file browser");
35: }
36:
37: /**
38: * Get popup menu associated with the specified <code>file</code>.
39: */
40: public abstract javax.swing.JPopupMenu getPopupMenu(
41: oscript.fs.AbstractFile file);
42:
43: /**
44: * Trigger a specified <code>action</code> for the specified
45: * <code>file</code>. If the <code>action</code> is <code>null</code>
46: * then trigger the default action, if any.
47: */
48: public abstract void fireAction(oscript.fs.AbstractFile file,
49: String action);
50:
51: /**
52: * Get an array of files that were recently opened, in order of most
53: * recent first.
54: *
55: * @return array of file paths
56: */
57: public abstract String[] getRecentItems();
58: }
59:
60: /*
61: * Local Variables:
62: * tab-width: 2
63: * indent-tabs-mode: nil
64: * mode: java
65: * c-indentation-style: java
66: * c-basic-offset: 2
67: * eval: (c-set-offset 'substatement-open '0)
68: * End:
69: */
|