projects
/
jSite.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version 0.5: show usk keys only, update usk on insert completion
[jSite.git]
/
src
/
de
/
todesbaum
/
jsite
/
gui
/
ProjectFilesPage.java
diff --git
a/src/de/todesbaum/jsite/gui/ProjectFilesPage.java
b/src/de/todesbaum/jsite/gui/ProjectFilesPage.java
index
1b5b8c6
..
b256e51
100644
(file)
--- a/
src/de/todesbaum/jsite/gui/ProjectFilesPage.java
+++ b/
src/de/todesbaum/jsite/gui/ProjectFilesPage.java
@@
-31,6
+31,7
@@
import java.awt.event.KeyEvent;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Collections;
+import java.util.Iterator;
import java.util.List;
import javax.swing.AbstractAction;
import java.util.List;
import javax.swing.AbstractAction;
@@
-71,7
+72,7
@@
import de.todesbaum.util.swing.TWizardPage;
/**
* @author David Roden <droden@gmail.com>
/**
* @author David Roden <droden@gmail.com>
- * @version $Id
: ProjectFilesPage.java 404 2006-03-26 02:11:03Z bombe
$
+ * @version $Id$
*/
public class ProjectFilesPage extends TWizardPage implements ActionListener, ListSelectionListener, DocumentListener, FileScannerListener, ChangeListener {
*/
public class ProjectFilesPage extends TWizardPage implements ActionListener, ListSelectionListener, DocumentListener, FileScannerListener, ChangeListener {
@@
-143,6
+144,7
@@
public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis
deleteContainerAction.setEnabled(false);
}
deleteContainerAction.setEnabled(false);
}
+ @Override
public void pageAdded(TWizard wizard) {
this.wizard = wizard;
actionScan();
public void pageAdded(TWizard wizard) {
this.wizard = wizard;
actionScan();
@@
-351,6
+353,13
@@
public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis
rebuildContainerComboBox();
}
});
rebuildContainerComboBox();
}
});
+ Iterator<String> filenames = project.getFileOptions().keySet().iterator();
+ while (filenames.hasNext()) {
+ String filename = filenames.next();
+ if (!files.contains(filename)) {
+ project.setFileOption(filename, null);
+ }
+ }
} else {
JOptionPane.showMessageDialog(wizard, I18n.getMessage("jsite.project-files.scan-error"), null, JOptionPane.ERROR_MESSAGE);
}
} else {
JOptionPane.showMessageDialog(wizard, I18n.getMessage("jsite.project-files.scan-error"), null, JOptionPane.ERROR_MESSAGE);
}
@@
-462,8
+471,9
@@
public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis
private void processDocumentUpdate(DocumentEvent documentEvent) {
String filename = (String) projectFileList.getSelectedValue();
private void processDocumentUpdate(DocumentEvent documentEvent) {
String filename = (String) projectFileList.getSelectedValue();
- if (filename == null)
+ if (filename == null)
{
return;
return;
+ }
FileOption fileOption = project.getFileOption(filename);
Document document = documentEvent.getDocument();
try {
FileOption fileOption = project.getFileOption(filename);
Document document = documentEvent.getDocument();
try {
@@
-503,8
+513,9
@@
public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis
*/
public void stateChanged(ChangeEvent changeEvent) {
String filename = (String) projectFileList.getSelectedValue();
*/
public void stateChanged(ChangeEvent changeEvent) {
String filename = (String) projectFileList.getSelectedValue();
- if (filename == null)
+ if (filename == null)
{
return;
return;
+ }
FileOption fileOption = project.getFileOption(filename);
Object source = changeEvent.getSource();
if (source instanceof JSpinner) {
FileOption fileOption = project.getFileOption(filename);
Object source = changeEvent.getSource();
if (source instanceof JSpinner) {