import java.text.DateFormat;
import java.text.MessageFormat;
import java.util.Date;
+import java.util.logging.Level;
+import java.util.logging.Logger;
import javax.swing.AbstractAction;
import javax.swing.Action;
*/
public class ProjectInsertPage extends TWizardPage implements InsertListener, ClipboardOwner {
+ /** The logger. */
+ private static final Logger logger = Logger.getLogger(ProjectInsertPage.class.getName());
+
/** The project inserter. */
private ProjectInserter projectInserter;
requestURITextField.setText(uri);
}
});
+ logger.log(Level.FINEST, "Insert generated URI: " + uri);
+ int slash = uri.indexOf('/');
+ slash = uri.indexOf('/', slash + 1);
+ int secondSlash = uri.indexOf('/', slash + 1);
+ if (secondSlash == -1) {
+ secondSlash = uri.length();
+ }
+ String editionNumber = uri.substring(slash + 1, secondSlash);
+ logger.log(Level.FINEST, "Extracted edition number: " + editionNumber);
+ int edition = -1;
+ try {
+ edition = Integer.valueOf(editionNumber);
+ } catch (NumberFormatException nfe1) {
+ /* ignore. */
+ }
+ logger.log(Level.FINEST, "Insert edition: " + edition + ", Project edition: " + project.getEdition());
+ if ((edition != -1) && (edition == project.getEdition())) {
+ JOptionPane.showMessageDialog(this, I18n.getMessage("jsite.insert.reinserted-edition"), I18n.getMessage("jsite.insert.reinserted-edition.title"), JOptionPane.INFORMATION_MESSAGE);
+ }
}
/**
jsite.insert.inserted=<html><b>Project inserted</b><br><br>Your project was inserted successfully.</html>
jsite.insert.okay=OK
jsite.insert.okay-copy-uri=Copy URI to Clipboard
+jsite.insert.reinserted-edition=<html><b>Edition Reinserted</b><br><br>The edition you are just inserting<br>has already been inserted before.</html>
+jsite.insert.reinserted-edition.title=Edition Reinserted
jsite.file-scanner.can-not-read-directory=Can not read directory
jsite.insert.inserted=<html><b>Projekt eingef\u00fcgt</b><br><br>Ihr Projekt wurde erfolgreich eingef\u00fcgt.</html>
jsite.insert.okay=OK
jsite.insert.okay-copy-uri=URI kopieren
+jsite.insert.reinserted-edition=<html><b>Edition bereits eingef\u00fcgt</b><br><br>Die Edition, die gerade eingef\u00fcgt wird,<br>ist schon einmal eingef\u00fcgt worden.</html>
+jsite.insert.reinserted-edition.title=Edition bereits eingef\u00fcgt
jsite.file-scanner.can-not-read-directory=Kann Verzeichnis nicht lesen