Package net.sf.jabref.undo

Examples of net.sf.jabref.undo.UndoableInsertString


          if (importStrings) {
              for (BibtexString bs : fromDatabase.getStringValues()){
                  if (!database.hasStringLabel(bs.getName())) {
                      database.addString(bs);
                      ce.addEdit(new UndoableInsertString(panel, database, bs));
                  }
              }
          }

          if (importGroups) {
View Full Code Here


      // The string was removed or renamed locally. We guess that it was removed.
  String newId = Util.createNeutralId();
  BibtexString bs = new BibtexString(newId, disk, content);
      try {
        panel.database().addString(bs);
        undoEdit.addEdit(new UndoableInsertString(panel, panel.database(), bs));
      } catch (KeyCollisionException ex) {
        Globals.logger("Error: could not add string '"+bs.getName()+"': "+ex.getMessage());
      }
    }
View Full Code Here

      // The string was removed or renamed locally. We guess that it was removed.
  String newId = Util.createNeutralId();
  BibtexString bs = new BibtexString(newId, label, disk);
  try {
      panel.database().addString(bs);
      undoEdit.addEdit(new UndoableInsertString(panel, panel.database(), bs));
  } catch (KeyCollisionException ex) {
      Globals.logger("Error: could not add string '"+string.getName()+"': "+ex.getMessage());
  }
    }
View Full Code Here

                     +"is already in use.");
    }

    try {
      panel.database().addString(string);
      undoEdit.addEdit(new UndoableInsertString(panel, panel.database(), string));
    } catch (KeyCollisionException ex) {
      Globals.logger("Error: could not add string '"+string.getName()+"': "+ex.getMessage());
    }
    try {
        secondary.addString(new BibtexString(Util.createNeutralId(), string.getName(),
View Full Code Here

    String newId = Util.createNeutralId();
    BibtexString bs = new BibtexString(newId, name, "");

    // Store undo information:
    panel.undoManager.addEdit
        (new UndoableInsertString
         (panel, panel.database, bs));

    base.addString(bs);
    refreshTable();
    //    table.revalidate();
View Full Code Here

TOP

Related Classes of net.sf.jabref.undo.UndoableInsertString

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.