2 * jSite2 - FileManager.java -
3 * Copyright © 2008 David Roden
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
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.
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.
20 package net.pterodactylus.jsite.gui;
22 import javax.swing.JDialog;
23 import javax.swing.JFrame;
25 import net.pterodactylus.jsite.i18n.I18n;
26 import net.pterodactylus.jsite.i18n.I18nable;
27 import net.pterodactylus.jsite.project.Project;
30 * Manages physical and virtual files in a project.
32 * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
34 public class FileManager extends JDialog implements I18nable {
36 /** The project whose files to manage. */
37 private final Project project;
40 * Creates a new file manager.
45 * The project whose files to manage
47 public FileManager(JFrame parent, Project project) {
48 super(parent, I18n.get("fileManager.title", project.getName()));
49 this.project = project;
58 * Initializes all components.
60 private void initComponents() {
71 public void updateI18n() {
72 setTitle(I18n.get("fileManager.title", project.getName()));