Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2013-07-12 04:14:24 -0400
committerTom Schindl2013-07-12 04:14:24 -0400
commitabbae7435278dd652a3c4eaa6854c71d64a16b20 (patch)
tree6da7d3f0a6221c65caaca8ba41faf451ce6cd176
parent794dcdd32984b4d931938b9fdf6a9bc4ba55a8e0 (diff)
downloadorg.eclipse.efxclipse-abbae7435278dd652a3c4eaa6854c71d64a16b20.tar.gz
org.eclipse.efxclipse-abbae7435278dd652a3c4eaa6854c71d64a16b20.tar.xz
org.eclipse.efxclipse-abbae7435278dd652a3c4eaa6854c71d64a16b20.zip
added error handling
-rwxr-xr-xbundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/internal/BuildPathSupport.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/bundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/internal/BuildPathSupport.java b/bundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/internal/BuildPathSupport.java
index 1fb743a81..41e273456 100755
--- a/bundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/internal/BuildPathSupport.java
+++ b/bundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/internal/BuildPathSupport.java
@@ -15,6 +15,8 @@ import java.io.File;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
+import org.eclipse.fx.core.log.Logger;
+import org.eclipse.fx.osgi.util.LoggerCreator;
import org.eclipse.jdt.core.IAccessRule;
import org.eclipse.jdt.core.IClasspathAttribute;
import org.eclipse.jdt.core.IClasspathEntry;
@@ -26,6 +28,8 @@ import org.eclipse.jdt.launching.LibraryLocation;
public class BuildPathSupport {
public static final String WEB_JAVADOC_LOCATION = "http://docs.oracle.com/javafx/2/api/";
+
+ private static final Logger LOGGER = LoggerCreator.createLogger(BuildPathSupport.class);
public static IClasspathEntry getJavaFXLibraryEntry(IJavaProject project) {
IPath[] paths = getFxJarPath(project);
@@ -93,7 +97,7 @@ public class BuildPathSupport {
};
jarLocationPath = checkPaths[0];
-
+
if( ! jarLocationPath.toFile().exists() ) {
for( IPath p : checkPaths ) {
if( p.toFile().exists() ) {
@@ -104,6 +108,13 @@ public class BuildPathSupport {
}
if( ! jarLocationPath.toFile().exists() ) {
+ LOGGER.error("Unable to detect JavaFX jar for JRE " + i.getName());
+ LOGGER.error(" JRE: " + installDir.getAbsolutePath());
+ LOGGER.error(" Checked paths:" );
+ for( IPath p : checkPaths ) {
+ LOGGER.error(" " + p.toFile().getAbsolutePath());
+ }
+
return null;
}

Back to the top