From: David ‘Bombe’ Roden Date: Mon, 23 Jun 2008 21:09:41 +0000 (+0200) Subject: make mime type combo box editable X-Git-Tag: 0.5~3 X-Git-Url: https://git.pterodactylus.net/?p=jSite.git;a=commitdiff_plain;h=5e795a1fb0805c10d8e8d73f5e89de00a150fda0 make mime type combo box editable --- diff --git a/src/de/todesbaum/jsite/gui/ProjectFilesPage.java b/src/de/todesbaum/jsite/gui/ProjectFilesPage.java index 872650a..2d6743d 100644 --- a/src/de/todesbaum/jsite/gui/ProjectFilesPage.java +++ b/src/de/todesbaum/jsite/gui/ProjectFilesPage.java @@ -74,7 +74,7 @@ import de.todesbaum.util.swing.TWizardPage; /** * Wizard page that lets the user manage the files of a project. - * + * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ public class ProjectFilesPage extends TWizardPage implements ActionListener, ListSelectionListener, DocumentListener, FileScannerListener, ChangeListener { @@ -123,7 +123,7 @@ public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis /** * Creates a new project file page. - * + * * @param wizard * The wizard the page belongs to */ @@ -214,7 +214,7 @@ public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis /** * Creates the panel contains the project file list and options. - * + * * @return The created panel */ private JComponent createProjectFilesPanel() { @@ -267,6 +267,7 @@ public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis fileOptionsMIMETypeComboBox.setToolTipText(I18n.getMessage("jsite.project-files.mime-type.tooltip")); fileOptionsMIMETypeComboBox.setName("project-files.mime-type"); fileOptionsMIMETypeComboBox.addActionListener(this); + fileOptionsMIMETypeComboBox.setEditable(true); fileOptionsMIMETypeComboBox.setEnabled(false); final TLabel mimeTypeLabel = new TLabel(I18n.getMessage("jsite.project-files.mime-type") + ":", KeyEvent.VK_M, fileOptionsMIMETypeComboBox); @@ -335,7 +336,7 @@ public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis /** * Sets the project whose files to manage. - * + * * @param project * The project whose files to manage */ @@ -354,7 +355,7 @@ public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis /** * Returns a list of all project files. - * + * * @return All project files */ private List getProjectFiles() { @@ -610,7 +611,7 @@ public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis /** * Updates the options of the currently selected file with the changes made * in the “custom key” textfield. - * + * * @param documentEvent * The document event to process */