Skip to content

Commit

Permalink
Resolves #1798 Remove unused DragAndDrop Handlers and URL extra field…
Browse files Browse the repository at this point in the history
… components
  • Loading branch information
stefan-kolb committed Aug 22, 2016
1 parent 135b6d3 commit 51107ea
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 342 deletions.
2 changes: 0 additions & 2 deletions src/main/java/net/sf/jabref/gui/FileListEntryEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
* label that can be hidden when the download is complete.
*/
public class FileListEntryEditor {

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

private JDialog diag;
Expand Down Expand Up @@ -334,7 +333,6 @@ public boolean okPressed() {

}


private final ActionListener browsePressed = e -> {
String filePath = link.getText().trim();
Optional<File> file = FileUtil.expandFilename(this.databaseContext, filePath);
Expand Down
209 changes: 0 additions & 209 deletions src/main/java/net/sf/jabref/gui/UrlDragDrop.java

This file was deleted.

2 changes: 0 additions & 2 deletions src/main/java/net/sf/jabref/gui/entryeditor/EntryEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,6 @@ public Optional<JComponent> getExtra(final FieldEditor editor) {
getStoreFieldAction());
} else if (!panel.getBibDatabaseContext().getMetaData().getContentSelectors(fieldName).isEmpty()) {
return FieldExtraComponents.getSelectorExtraComponent(frame, panel, editor, contentSelectors, getStoreFieldAction());
} else if (fieldExtras.contains(FieldProperties.URL)) {
return FieldExtraComponents.getURLExtraComponent(editor, getStoreFieldAction());
} else if (fieldExtras.contains(FieldProperties.DOI)) {
return FieldExtraComponents.getDoiExtraComponent(panel, this, editor);
} else if (fieldExtras.contains(FieldProperties.EPRINT)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,21 +397,6 @@ public static Optional<JComponent> getSetOwnerExtraComponent(FieldEditor fieldEd

}

/**
* Set up a drop target for URLs for fields with EXTRA_URL
*
* @param fieldEditor
* @param storeFieldAction
* @return
*/
public static Optional<JComponent> getURLExtraComponent(FieldEditor fieldEditor,
StoreFieldAction storeFieldAction) {
((JComponent) fieldEditor).setDropTarget(new DropTarget((Component) fieldEditor, DnDConstants.ACTION_NONE,
new SimpleUrlDragDrop(fieldEditor, storeFieldAction)));

return Optional.empty();
}

/**
* Return a button opening a content selector for fields where one exists
*
Expand Down
113 changes: 0 additions & 113 deletions src/main/java/net/sf/jabref/gui/entryeditor/SimpleUrlDragDrop.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

public enum FieldProperties {
YES_NO,
URL,
DATE,
JOURNAL_NAME,
EXTERNAL,
Expand Down

0 comments on commit 51107ea

Please sign in to comment.