Package net.sf.jabref.undo

Examples of net.sf.jabref.undo.NamedCompound.end()


        }

        output(Globals.lang("Changed type to")+" '"+type.getName()+"' "
               +Globals.lang("for")+" "+bes.length
               +" "+Globals.lang("entries")+".");
        ce.end();
        undoManager.addEdit(ce);
        markBaseChanged();
        updateEntryEditorIfShowing();
    }
View Full Code Here


                    any = true;
                }
            }
            // Store undo information, if any:
            if (any) {
                ce.end();
                undoManager.addEdit(ce);
            }
        }
    }
   
View Full Code Here

        entriesChangedCount = changedEntries.size();
  //for (BibtexEntry entr : changedEntries)
  //    System.out.println(entr.getCiteKey());
        if (entriesChangedCount > 0) {
            // Add the undo edit:
            ce.end();
            panel.undoManager.addEdit(ce);
           
        }
    }
View Full Code Here

                      panel.metaData().putData(s, meta.getData(s));
                  }
              }
          }

          ce.end();
          panel.undoManager.addEdit(ce);
          panel.markBaseChanged();
      }

View Full Code Here

    public void handleDroppedfile(String fileName, ExternalFileType fileType, boolean localFile,
        BibtexEntry entry) {
        NamedCompound edits = new NamedCompound(Globals.lang("Drop %0", fileType.extension));

        if (tryXmpImport(fileName, fileType, localFile, edits)) {
            edits.end();
            panel.undoManager.addEdit(edits);
            return;
        }

        // Show dialog
View Full Code Here

        if (success) {
            doLink(entry, fileType, destFilename, false, edits);
            panel.markBaseChanged();
        }
        edits.end();
        panel.undoManager.addEdit(edits);

    }

    private boolean tryXmpImport(String fileName, ExternalFileType fileType, boolean localFile,
View Full Code Here

              m_searchField, oldContent, newContent));
          modified = true;
        }
      }
      if (modified)
        ce.end();

      return modified ? ce : null;
    }

    return null;
View Full Code Here

                  .getField(m_searchField)));
          modified = true;
        }
      }
      if (modified)
        ce.end();

      return modified ? ce : null;
    }

    return null;
View Full Code Here

                    } catch (KeyCollisionException e) {
                        e.printStackTrace();
                    }
                }

                ce.end();
                panel.undoManager.addEdit(ce);
            }

            dispose();
            SwingUtilities.invokeLater(new Thread() {
View Full Code Here

            BibtexEntry entry = i.next();
            panel.database.removeEntry(entry.getId());       
            ce.addEdit(new UndoableRemoveEntry(panel.database, entry, panel));
        }
    
        ce.end();
        panel.undoManager.addEdit(ce);
       
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {               
                panel.markBaseChanged();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.