Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
simonharrer committed Apr 5, 2016
1 parent 18f7b80 commit 237aa1b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
16 changes: 6 additions & 10 deletions src/main/java/net/sf/jabref/gui/BasePanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@
*/
package net.sf.jabref.gui;

import ca.odell.glazedlists.FilterList;
import ca.odell.glazedlists.event.ListEvent;
import ca.odell.glazedlists.event.ListEventListener;
import ca.odell.glazedlists.matchers.Matcher;
import com.jgoodies.forms.builder.FormBuilder;
import com.jgoodies.forms.layout.FormLayout;
import net.sf.jabref.*;
Expand All @@ -27,7 +25,6 @@
import net.sf.jabref.collab.FileUpdatePanel;
import net.sf.jabref.exporter.*;
import net.sf.jabref.external.*;
import net.sf.jabref.groups.GroupMatcher;
import net.sf.jabref.groups.GroupSelector;
import net.sf.jabref.groups.GroupTreeNode;
import net.sf.jabref.gui.actions.Actions;
Expand Down Expand Up @@ -64,30 +61,28 @@
import net.sf.jabref.logic.labelpattern.LabelPatternUtil;
import net.sf.jabref.logic.layout.Layout;
import net.sf.jabref.logic.layout.LayoutHelper;
import net.sf.jabref.gui.search.matchers.EverythingMatcher;
import net.sf.jabref.gui.search.matchers.SearchMatcher;
import net.sf.jabref.logic.util.UpdateField;
import net.sf.jabref.logic.util.io.FileBasedLock;
import net.sf.jabref.logic.util.io.FileUtil;
import net.sf.jabref.model.database.*;
import net.sf.jabref.model.database.BibDatabase;
import net.sf.jabref.model.database.DatabaseChangeEvent;
import net.sf.jabref.model.database.DatabaseChangeEvent.ChangeType;
import net.sf.jabref.model.database.DatabaseChangeListener;
import net.sf.jabref.model.database.KeyCollisionException;
import net.sf.jabref.model.entry.BibEntry;
import net.sf.jabref.model.entry.EntryType;
import net.sf.jabref.model.entry.IdGenerator;
import net.sf.jabref.specialfields.*;
import net.sf.jabref.sql.*;
import net.sf.jabref.sql.exporter.DBExporter;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import javax.swing.*;
import javax.swing.tree.TreePath;
import javax.swing.undo.CannotRedoException;
import javax.swing.undo.CannotUndoException;

import java.awt.BorderLayout;
import java.awt.Toolkit;
import java.awt.*;
import java.awt.datatransfer.*;
import java.awt.event.ActionEvent;
import java.awt.event.KeyAdapter;
Expand All @@ -98,6 +93,7 @@
import java.nio.charset.Charset;
import java.nio.charset.UnsupportedCharsetException;
import java.util.*;
import java.util.List;

public class BasePanel extends JPanel implements ClipboardOwner, FileUpdateListener {

Expand Down
7 changes: 3 additions & 4 deletions src/main/java/net/sf/jabref/gui/search/SearchWorker.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import net.sf.jabref.gui.BasePanel;
import net.sf.jabref.gui.maintable.MainTableDataModel;
import net.sf.jabref.gui.worker.AbstractWorker;
import net.sf.jabref.logic.search.SearchQuery;
import net.sf.jabref.model.database.BibDatabase;
import net.sf.jabref.model.entry.BibEntry;
Expand All @@ -19,7 +18,7 @@
/**
* Not reusable. Always create a new instance for each search!
*/
class SearchWorker extends SwingWorker<List<BibEntry>,Void> {
class SearchWorker extends SwingWorker<List<BibEntry>, Void> {

private static final Log LOGGER = LogFactory.getLog(SearchWorker.class);

Expand Down Expand Up @@ -47,7 +46,7 @@ protected List<BibEntry> doInBackground() throws Exception {

@Override
protected void done() {
if(isCancelled()) {
if (isCancelled()) {
return;
}

Expand All @@ -61,7 +60,7 @@ protected void done() {
private void updateUIWithSearchResult(List<BibEntry> matchedEntries) {

// check if still the current query
if(!basePanel.getSearchBar().isStillValidQuery(searchQuery)) {
if (!basePanel.getSearchBar().isStillValidQuery(searchQuery)) {
// do not update - another search was already issued
return;
}
Expand Down

0 comments on commit 237aa1b

Please sign in to comment.