Example usage for java.awt.datatransfer DataFlavor getDefaultRepresentationClass

List of usage examples for java.awt.datatransfer DataFlavor getDefaultRepresentationClass

Introduction

In this page you can find the example usage for java.awt.datatransfer DataFlavor getDefaultRepresentationClass.

Prototype

public final Class<?> getDefaultRepresentationClass() 

Source Link

Document

Returns the default representation class.

Usage

From source file:net.sf.jabref.external.TransferableFileLinkSelection.java

@Override
public boolean isDataFlavorSupported(DataFlavor dataFlavor) {
    LOGGER.debug("Query: " + dataFlavor.getHumanPresentableName() + " , "
            + dataFlavor.getDefaultRepresentationClass() + " , " + dataFlavor.getMimeType());
    return dataFlavor.equals(DataFlavor.javaFileListFlavor) || dataFlavor.equals(DataFlavor.stringFlavor);
}