From f8da34c5150d94b723f57f399d940c57712aeee7 Mon Sep 17 00:00:00 2001 From: "mellowaredev@gmail.com" Date: Mon, 30 Jan 2012 12:40:02 +0000 Subject: [PATCH] Fixed #6 allowing setLibraryLocation(File) to use a File object. git-svn-id: http://jintellitype.googlecode.com/svn/trunk@28 46e98894-136e-cd33-ffd5-f4f03a221aa8 --- .../java/com/melloware/jintellitype/JIntellitype.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/com/melloware/jintellitype/JIntellitype.java b/src/main/java/com/melloware/jintellitype/JIntellitype.java index 06b0cf3..87d7068 100644 --- a/src/main/java/com/melloware/jintellitype/JIntellitype.java +++ b/src/main/java/com/melloware/jintellitype/JIntellitype.java @@ -383,6 +383,17 @@ public final class JIntellitype implements JIntellitypeConstants { } } + /** + * Sets the libraryLocation of the DLL using a File object. + *

+ * @param libraryFile the java.io.File representing the DLL + */ + public static void setLibraryLocation(File libraryFile) { + if (!libraryFile.isAbsolute()) { + JIntellitype.libraryLocation = libraryFile.getAbsolutePath(); + } + } + /** * Notifies all listeners that Hotkey was pressed. *