Improved support for DnD and startup file args

This commit is contained in:
Reinhard Pointner 2016-03-19 21:09:48 +00:00
parent 72f3c375e9
commit 440f47412f
4 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@ public class AnalyzePanel extends JComponent {
try { try {
if (handler != null && handler.accept(transferable)) { if (handler != null && handler.accept(transferable)) {
handler.handleTransferable(transferable, TransferAction.ADD); handler.handleTransferable(transferable, TransferAction.PUT);
} }
} catch (Exception e) { } catch (Exception e) {
debug.log(Level.WARNING, "Failed to handle transferable: " + transferable, e); debug.log(Level.WARNING, "Failed to handle transferable: " + transferable, e);

View File

@ -146,7 +146,7 @@ public class ListPanel extends JComponent {
try { try {
if (handler != null && handler.accept(transferable)) { if (handler != null && handler.accept(transferable)) {
handler.handleTransferable(transferable, TransferAction.ADD); handler.handleTransferable(transferable, TransferAction.PUT);
} }
} catch (Exception e) { } catch (Exception e) {
debug.log(Level.WARNING, "Failed to handle transferable: " + transferable, e); debug.log(Level.WARNING, "Failed to handle transferable: " + transferable, e);

View File

@ -651,7 +651,7 @@ public class RenamePanel extends JComponent {
try { try {
if (handler != null && handler.accept(transferable)) { if (handler != null && handler.accept(transferable)) {
handler.handleTransferable(transferable, TransferAction.ADD); handler.handleTransferable(transferable, TransferAction.PUT);
} }
} catch (Exception e) { } catch (Exception e) {
debug.log(Level.WARNING, "Failed to handle transferable: " + transferable, e); debug.log(Level.WARNING, "Failed to handle transferable: " + transferable, e);

View File

@ -139,7 +139,7 @@ public class SfvPanel extends JComponent {
try { try {
if (handler != null && handler.accept(transferable)) { if (handler != null && handler.accept(transferable)) {
handler.handleTransferable(transferable, TransferAction.ADD); handler.handleTransferable(transferable, TransferAction.PUT);
} }
} catch (Exception e) { } catch (Exception e) {
debug.log(Level.WARNING, "Failed to handle transferable: " + transferable, e); debug.log(Level.WARNING, "Failed to handle transferable: " + transferable, e);