~ubuntu-branches/ubuntu/natty/jabref/natty

« back to all changes in this revision

Viewing changes to src/java/net/sf/jabref/export/FileActions.java

  • Committer: Bazaar Package Importer
  • Author(s): gregor herrmann
  • Date: 2007-11-16 18:38:18 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071116183818-20x934jdsju14618
Tags: 2.3-2
* Add /usr/lib/jvm/java-7-icedtea to wrapper script. Doesn't work on
  Debian yet but helps Ubuntu users (TODO: add dependency on
  icedtea-java7-jre (not yet in Debian)).
* Reformat wrapper script.
* debian/rules: re-arrange targets and their dependencies.

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
     * @param encoding String the name of the encoding, which is part of the header.
121
121
     */
122
122
    private static void writeBibFileHeader(Writer out, String encoding) throws IOException {
 
123
        out.write("% ");
123
124
      out.write(GUIGlobals.SIGNATURE);
124
 
      out.write(" "+GUIGlobals.version+"."+Globals.NEWLINE +GUIGlobals.encPrefix+encoding+Globals.NEWLINE +Globals.NEWLINE);
 
125
      out.write(" "+GUIGlobals.version+"."+Globals.NEWLINE + "% " + 
 
126
              GUIGlobals.encPrefix+encoding+Globals.NEWLINE +Globals.NEWLINE);
125
127
    }
126
128
 
127
129
    /**
239
241
                e.printStackTrace();
240
242
                throw new SaveException(ex.getMessage()+"\n"+
241
243
                        Globals.lang("Warning: could not complete file repair; your file may "
242
 
                        +"have been corrupted. Error message: ")+e.getMessage());
 
244
                        +"have been corrupted. Error message")+": "+e.getMessage());
243
245
            }
244
246
            throw new SaveException(ex.getMessage(), be);
245
247
    }
431
433
                                   HashMap fieldFormatters, Writer out)
432
434
    throws IOException {
433
435
 
434
 
    String s = (String)entry.getField(field);
435
 
    if (s == null) {
436
 
        return;
437
 
    }
438
 
        s = database.resolveForStrings(s);
 
436
    String s = BibtexDatabase.getResolvedField(field, entry, database);
 
437
        
439
438
    Object form = fieldFormatters.get(field);
440
439
    if (form == null)
441
440
        form = fieldFormatters.get("default");