Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2013-04-27 11:59:04 +0000
committerTom Schindl2013-04-27 11:59:04 +0000
commit9d07120c927b1123c4317d0673991d070bdd23c3 (patch)
treed407df6afedf6cc7f9e24c52d876358780e2568a
parente8f065b028c22dba2078a60deb1b41e310340373 (diff)
downloadorg.eclipse.efxclipse-9d07120c927b1123c4317d0673991d070bdd23c3.tar.gz
org.eclipse.efxclipse-9d07120c927b1123c4317d0673991d070bdd23c3.tar.xz
org.eclipse.efxclipse-9d07120c927b1123c4317d0673991d070bdd23c3.zip
initial check in
-rwxr-xr-xbundles/tooling/org.eclipse.fx.ide.jdt.core/.classpath7
-rwxr-xr-xbundles/tooling/org.eclipse.fx.ide.jdt.core/.gitignore2
-rwxr-xr-xbundles/tooling/org.eclipse.fx.ide.jdt.core/.project28
-rwxr-xr-xbundles/tooling/org.eclipse.fx.ide.jdt.core/.settings/org.eclipse.core.resources.prefs2
-rwxr-xr-xbundles/tooling/org.eclipse.fx.ide.jdt.core/.settings/org.eclipse.core.runtime.prefs2
-rwxr-xr-xbundles/tooling/org.eclipse.fx.ide.jdt.core/.settings/org.eclipse.jdt.core.prefs7
-rwxr-xr-xbundles/tooling/org.eclipse.fx.ide.jdt.core/.settings/org.eclipse.jdt.ui.prefs4
-rwxr-xr-xbundles/tooling/org.eclipse.fx.ide.jdt.core/META-INF/MANIFEST.MF15
-rwxr-xr-xbundles/tooling/org.eclipse.fx.ide.jdt.core/OSGI-INF/l10n/bundle.properties3
-rwxr-xr-xbundles/tooling/org.eclipse.fx.ide.jdt.core/about.html28
-rwxr-xr-xbundles/tooling/org.eclipse.fx.ide.jdt.core/build.properties7
-rwxr-xr-xbundles/tooling/org.eclipse.fx.ide.jdt.core/plugin.xml18
-rwxr-xr-xbundles/tooling/org.eclipse.fx.ide.jdt.core/pom.xml34
-rwxr-xr-xbundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/JavaFXCore.java20
-rwxr-xr-xbundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/internal/BuildPathSupport.java128
-rwxr-xr-xbundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/internal/FXAccessRuleParticipant.java45
-rwxr-xr-xbundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/internal/JavaFXClasspathContainerInitializer.java80
-rwxr-xr-xbundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/internal/JavaFXCorePlugin.java17
-rw-r--r--releng/org.eclipse.fx.ide.releng/.project11
-rwxr-xr-xreleng/org.eclipse.fx.ide.releng/pom.xml196
20 files changed, 654 insertions, 0 deletions
diff --git a/bundles/tooling/org.eclipse.fx.ide.jdt.core/.classpath b/bundles/tooling/org.eclipse.fx.ide.jdt.core/.classpath
new file mode 100755
index 000000000..b1dabee38
--- /dev/null
+++ b/bundles/tooling/org.eclipse.fx.ide.jdt.core/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/bundles/tooling/org.eclipse.fx.ide.jdt.core/.gitignore b/bundles/tooling/org.eclipse.fx.ide.jdt.core/.gitignore
new file mode 100755
index 000000000..4dc009173
--- /dev/null
+++ b/bundles/tooling/org.eclipse.fx.ide.jdt.core/.gitignore
@@ -0,0 +1,2 @@
+/target
+/bin
diff --git a/bundles/tooling/org.eclipse.fx.ide.jdt.core/.project b/bundles/tooling/org.eclipse.fx.ide.jdt.core/.project
new file mode 100755
index 000000000..7c5e83739
--- /dev/null
+++ b/bundles/tooling/org.eclipse.fx.ide.jdt.core/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.fx.ide.jdt.core</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/bundles/tooling/org.eclipse.fx.ide.jdt.core/.settings/org.eclipse.core.resources.prefs b/bundles/tooling/org.eclipse.fx.ide.jdt.core/.settings/org.eclipse.core.resources.prefs
new file mode 100755
index 000000000..4824b8026
--- /dev/null
+++ b/bundles/tooling/org.eclipse.fx.ide.jdt.core/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+encoding/<project>=UTF-8
diff --git a/bundles/tooling/org.eclipse.fx.ide.jdt.core/.settings/org.eclipse.core.runtime.prefs b/bundles/tooling/org.eclipse.fx.ide.jdt.core/.settings/org.eclipse.core.runtime.prefs
new file mode 100755
index 000000000..deae05a97
--- /dev/null
+++ b/bundles/tooling/org.eclipse.fx.ide.jdt.core/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+line.separator=\r\n
diff --git a/bundles/tooling/org.eclipse.fx.ide.jdt.core/.settings/org.eclipse.jdt.core.prefs b/bundles/tooling/org.eclipse.fx.ide.jdt.core/.settings/org.eclipse.jdt.core.prefs
new file mode 100755
index 000000000..f42de363a
--- /dev/null
+++ b/bundles/tooling/org.eclipse.fx.ide.jdt.core/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.7
diff --git a/bundles/tooling/org.eclipse.fx.ide.jdt.core/.settings/org.eclipse.jdt.ui.prefs b/bundles/tooling/org.eclipse.fx.ide.jdt.core/.settings/org.eclipse.jdt.ui.prefs
new file mode 100755
index 000000000..b5bc9aa1f
--- /dev/null
+++ b/bundles/tooling/org.eclipse.fx.ide.jdt.core/.settings/org.eclipse.jdt.ui.prefs
@@ -0,0 +1,4 @@
+#Sat Sep 03 04:04:24 CEST 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.ui.javadoc=true
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\r\n * @return the ${bare_field_name}\r\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\r\n * @param ${param} the ${bare_field_name} to set\r\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************\r\n * Copyright (c) 2011 BestSolution.at and others.\r\n * All rights reserved. This program and the accompanying materials\r\n * are made available under the terms of the Eclipse Public License v1.0\r\n * which accompanies this distribution, and is available at\r\n * http\://www.eclipse.org/legal/epl-v10.html\r\n *\r\n * Contributors\:\r\n * Tom Schindl&lt;tom.schindl@bestsolution.at&gt; - initial API and implementation\r\n *******************************************************************************/</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author ${user}\r\n *\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\r\n * \r\n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\r\n * ${see_to_overridden}\r\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\r\n * ${tags}\r\n * ${see_to_target}\r\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\r\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method stub\r\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\r\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
diff --git a/bundles/tooling/org.eclipse.fx.ide.jdt.core/META-INF/MANIFEST.MF b/bundles/tooling/org.eclipse.fx.ide.jdt.core/META-INF/MANIFEST.MF
new file mode 100755
index 000000000..ade4c6096
--- /dev/null
+++ b/bundles/tooling/org.eclipse.fx.ide.jdt.core/META-INF/MANIFEST.MF
@@ -0,0 +1,15 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %Bundle-Name
+Bundle-SymbolicName: org.eclipse.fx.ide.jdt.core;singleton:=true
+Bundle-Version: 0.8.1.qualifier
+Bundle-RequiredExecutionEnvironment: JavaSE-1.7
+Require-Bundle: org.eclipse.jdt.core;bundle-version="3.7.0",
+ org.eclipse.equinox.common;bundle-version="3.6.0",
+ org.eclipse.core.runtime;bundle-version="3.7.0",
+ org.eclipse.jdt.launching;bundle-version="3.6.1"
+Bundle-Activator: org.eclipse.fx.ide.jdt.core.internal.JavaFXCorePlugin
+Bundle-ActivationPolicy: lazy
+Export-Package: org.eclipse.fx.ide.jdt.core,
+ org.eclipse.fx.ide.jdt.core.internal;x-friends:="org.eclipse.fx.ide.jdt.ui"
+Bundle-Vendor: %Bundle-Vendor
diff --git a/bundles/tooling/org.eclipse.fx.ide.jdt.core/OSGI-INF/l10n/bundle.properties b/bundles/tooling/org.eclipse.fx.ide.jdt.core/OSGI-INF/l10n/bundle.properties
new file mode 100755
index 000000000..c9f413cd8
--- /dev/null
+++ b/bundles/tooling/org.eclipse.fx.ide.jdt.core/OSGI-INF/l10n/bundle.properties
@@ -0,0 +1,3 @@
+#Properties file for org.eclipse.fx.ide.jdt.core
+Bundle-Vendor = BestSolution.at
+Bundle-Name = JDT core extension for JavaFX \ No newline at end of file
diff --git a/bundles/tooling/org.eclipse.fx.ide.jdt.core/about.html b/bundles/tooling/org.eclipse.fx.ide.jdt.core/about.html
new file mode 100755
index 000000000..ecd1378e9
--- /dev/null
+++ b/bundles/tooling/org.eclipse.fx.ide.jdt.core/about.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>June 2, 2006</p>
+<h3>License</h3>
+
+<p>The BestSolution.at makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the BestSolution.at, the Content is
+being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org">http://www.eclipse.org</a>.</p>
+
+</body>
+</html> \ No newline at end of file
diff --git a/bundles/tooling/org.eclipse.fx.ide.jdt.core/build.properties b/bundles/tooling/org.eclipse.fx.ide.jdt.core/build.properties
new file mode 100755
index 000000000..36877054f
--- /dev/null
+++ b/bundles/tooling/org.eclipse.fx.ide.jdt.core/build.properties
@@ -0,0 +1,7 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ about.html,\
+ OSGI-INF/
diff --git a/bundles/tooling/org.eclipse.fx.ide.jdt.core/plugin.xml b/bundles/tooling/org.eclipse.fx.ide.jdt.core/plugin.xml
new file mode 100755
index 000000000..cee002075
--- /dev/null
+++ b/bundles/tooling/org.eclipse.fx.ide.jdt.core/plugin.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.jdt.core.classpathContainerInitializer">
+ <classpathContainerInitializer
+ class="org.eclipse.fx.ide.jdt.core.internal.JavaFXClasspathContainerInitializer"
+ id="org.eclipse.fx.ide.jdt.core.JAVAFX_CONTAINER">
+ </classpathContainerInitializer>
+ </extension>
+ <extension
+ point="org.eclipse.jdt.launching.executionEnvironments">
+ <ruleParticipant
+ class="org.eclipse.fx.ide.jdt.core.internal.FXAccessRuleParticipant"
+ id="org.eclipse.fx.ide.jdt.core.fxrule">
+ </ruleParticipant>
+ </extension>
+</plugin>
diff --git a/bundles/tooling/org.eclipse.fx.ide.jdt.core/pom.xml b/bundles/tooling/org.eclipse.fx.ide.jdt.core/pom.xml
new file mode 100755
index 000000000..835b07758
--- /dev/null
+++ b/bundles/tooling/org.eclipse.fx.ide.jdt.core/pom.xml
@@ -0,0 +1,34 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <name>e(fx)clipse - IDE - JDT Core</name>
+ <groupId>org.eclipse.fx.ide</groupId>
+ <artifactId>org.eclipse.fx.ide.jdt.core</artifactId>
+ <packaging>eclipse-plugin</packaging>
+
+ <parent>
+ <groupId>org.eclipse.fx.ide</groupId>
+ <artifactId>releng</artifactId>
+ <relativePath>../../../releng/org.eclipse.fx.ide.releng/pom.xml</relativePath>
+ <version>0.8.1-SNAPSHOT</version>
+ </parent>
+
+ <build>
+ <resources>
+ <!-- to ensure that the feature lookup of the ui test works -->
+ <resource>
+ <directory>.</directory>
+ <includes>
+ <include>META-INF/</include>
+ </includes>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-source-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+
+</project> \ No newline at end of file
diff --git a/bundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/JavaFXCore.java b/bundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/JavaFXCore.java
new file mode 100755
index 000000000..9d5f73b5d
--- /dev/null
+++ b/bundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/JavaFXCore.java
@@ -0,0 +1,20 @@
+/*******************************************************************************
+ * Copyright (c) 2012 BestSolution.at and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Tom Schindl<tom.schindl@bestsolution.at> - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.fx.ide.jdt.core;
+
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.Path;
+
+public class JavaFXCore {
+ public static final String JAVAFX_CONTAINER_ID= "org.eclipse.fx.ide.jdt.core.JAVAFX_CONTAINER"; //$NON-NLS-1$
+
+ public final static IPath JAVAFX_CONTAINER_PATH= new Path(JAVAFX_CONTAINER_ID); //$NON-NLS-1$
+}
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
new file mode 100755
index 000000000..1fb743a81
--- /dev/null
+++ b/bundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/internal/BuildPathSupport.java
@@ -0,0 +1,128 @@
+/*******************************************************************************
+ * Copyright (c) 2012 BestSolution.at and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Tom Schindl<tom.schindl@bestsolution.at> - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.fx.ide.jdt.core.internal;
+
+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.jdt.core.IAccessRule;
+import org.eclipse.jdt.core.IClasspathAttribute;
+import org.eclipse.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.JavaCore;
+import org.eclipse.jdt.launching.IVMInstall;
+import org.eclipse.jdt.launching.JavaRuntime;
+import org.eclipse.jdt.launching.LibraryLocation;
+
+public class BuildPathSupport {
+ public static final String WEB_JAVADOC_LOCATION = "http://docs.oracle.com/javafx/2/api/";
+
+ public static IClasspathEntry getJavaFXLibraryEntry(IJavaProject project) {
+ IPath[] paths = getFxJarPath(project);
+ if( paths != null ) {
+
+ IPath jarLocationPath = paths[0];
+ IPath javadocLocation = paths[1];
+ IPath fxSource = paths[3];
+
+ IClasspathAttribute[] attributes;
+ IAccessRule[] accessRules= { };
+ if (javadocLocation == null || !javadocLocation.toFile().exists()) {
+ attributes= new IClasspathAttribute[] { JavaCore.newClasspathAttribute(IClasspathAttribute.JAVADOC_LOCATION_ATTRIBUTE_NAME, WEB_JAVADOC_LOCATION) };
+ } else {
+ attributes= new IClasspathAttribute[] { JavaCore.newClasspathAttribute(IClasspathAttribute.JAVADOC_LOCATION_ATTRIBUTE_NAME, javadocLocation.toFile().toURI().toString()) };
+ }
+
+ if( jarLocationPath.toFile().exists() ) {
+ return JavaCore.newLibraryEntry(jarLocationPath, fxSource, null, accessRules, attributes, false);
+ }
+ }
+
+ return null;
+ }
+
+ public static IPath[] getFxJarPath(IJavaProject project) {
+ IPath jarLocationPath = null;
+ IPath javadocLocation = null;
+ IPath antJarLocationPath = null;
+ IPath sourceLocationPath = null;
+
+ try {
+ IVMInstall i = JavaRuntime.getVMInstall(project);
+ if( i == null ) {
+ i = JavaRuntime.getDefaultVMInstall();
+ }
+ return getFxJarPath(i);
+ } catch (CoreException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ return new IPath[] { jarLocationPath, javadocLocation, antJarLocationPath, sourceLocationPath };
+ }
+
+ public static IPath[] getFxJarPath(IVMInstall i) {
+ for( LibraryLocation l : JavaRuntime.getLibraryLocations(i) ) {
+ if( "jfxrt.jar".equals(l.getSystemLibraryPath().lastSegment()) ) {
+ return null;
+ }
+ }
+
+ IPath jarLocationPath = null;
+ IPath javadocLocation = null;
+ IPath antJarLocationPath = null;
+ IPath sourceLocationPath = null;
+
+ File installDir = i.getInstallLocation();
+
+ IPath[] checkPaths = {
+ // Java 7
+ new Path(installDir.getAbsolutePath()).append("jre").append("lib").append("jfxrt.jar"),
+ new Path(installDir.getAbsolutePath()).append("lib").append("jfxrt.jar") // JRE
+
+ };
+
+ jarLocationPath = checkPaths[0];
+
+ if( ! jarLocationPath.toFile().exists() ) {
+ for( IPath p : checkPaths ) {
+ if( p.toFile().exists() ) {
+ jarLocationPath = p;
+ break;
+ }
+ }
+ }
+
+ if( ! jarLocationPath.toFile().exists() ) {
+ return null;
+ }
+
+ javadocLocation = new Path(installDir.getParentFile().getAbsolutePath()).append("docs").append("api"); //TODO Not shipped yet
+ if( ! javadocLocation.toFile().exists() ) {
+ IPath p = new Path(System.getProperty("user.home")).append("javafx-api-"+ i.getName()).append("docs").append("api");
+ if( p.toFile().exists() ) {
+ javadocLocation = p;
+ }
+ }
+
+ antJarLocationPath = new Path(installDir.getParent()).append("lib").append("ant-javafx.jar");
+
+ sourceLocationPath = new Path(installDir.getAbsolutePath()).append("javafx-src.zip");
+
+ if( ! sourceLocationPath.toFile().exists() ) {
+ sourceLocationPath = null;
+ }
+
+ return new IPath[] { jarLocationPath, javadocLocation, antJarLocationPath, sourceLocationPath };
+ }
+}
diff --git a/bundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/internal/FXAccessRuleParticipant.java b/bundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/internal/FXAccessRuleParticipant.java
new file mode 100755
index 000000000..a81d3ec2d
--- /dev/null
+++ b/bundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/internal/FXAccessRuleParticipant.java
@@ -0,0 +1,45 @@
+package org.eclipse.fx.ide.jdt.core.internal;
+
+import org.eclipse.core.runtime.Path;
+import org.eclipse.jdt.core.IAccessRule;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.JavaCore;
+import org.eclipse.jdt.launching.IVMInstall;
+import org.eclipse.jdt.launching.LibraryLocation;
+import org.eclipse.jdt.launching.environments.IAccessRuleParticipant;
+import org.eclipse.jdt.launching.environments.IExecutionEnvironment;
+
+public class FXAccessRuleParticipant implements IAccessRuleParticipant {
+
+ @Override
+ public IAccessRule[][] getAccessRules(IExecutionEnvironment environment, IVMInstall vm, LibraryLocation[] libraries, IJavaProject project) {
+ boolean fxOnExtPath = false;
+ for( LibraryLocation loc : libraries ) {
+ if( "jfxrt.jar".equals(loc.getSystemLibraryPath().lastSegment()) ) {
+ fxOnExtPath = true;
+ break;
+ }
+ }
+
+ if( fxOnExtPath ) {
+ IAccessRule[] rules = new IAccessRule[6];
+ rules[0] = JavaCore.newAccessRule(new Path("javafx/**"), IAccessRule.K_ACCESSIBLE);
+ rules[1] = JavaCore.newAccessRule(new Path("netscape/javascript/**"), IAccessRule.K_ACCESSIBLE);
+ rules[2] = JavaCore.newAccessRule(new Path("com/sun/javafx/**"), IAccessRule.K_DISCOURAGED);
+ rules[3] = JavaCore.newAccessRule(new Path("com/sun/glass/**"), IAccessRule.K_DISCOURAGED);
+ rules[4] = JavaCore.newAccessRule(new Path("com/sun/media/jfxmedia/**"), IAccessRule.K_DISCOURAGED);
+ rules[5] = JavaCore.newAccessRule(new Path("com/sun/prism/**"), IAccessRule.K_DISCOURAGED);
+
+ IAccessRule[][] rv = new IAccessRule[libraries.length][];
+
+ for( int i = 0; i < rv.length; i++ ) {
+ rv[i] = rules;
+ }
+
+ return rv;
+ }
+
+ return new IAccessRule[0][0];
+ }
+
+}
diff --git a/bundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/internal/JavaFXClasspathContainerInitializer.java b/bundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/internal/JavaFXClasspathContainerInitializer.java
new file mode 100755
index 000000000..170dc1b40
--- /dev/null
+++ b/bundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/internal/JavaFXClasspathContainerInitializer.java
@@ -0,0 +1,80 @@
+/*******************************************************************************
+ * Copyright (c) 2012 BestSolution.at and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Tom Schindl<tom.schindl@bestsolution.at> - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.fx.ide.jdt.core.internal;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.fx.ide.jdt.core.JavaFXCore;
+import org.eclipse.jdt.core.ClasspathContainerInitializer;
+import org.eclipse.jdt.core.IClasspathContainer;
+import org.eclipse.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.JavaCore;
+
+
+public class JavaFXClasspathContainerInitializer extends
+ ClasspathContainerInitializer {
+
+ private static class JavaFXContainer implements IClasspathContainer {
+
+ private final IClasspathEntry[] fEntries;
+ private final IPath fPath;
+
+ public JavaFXContainer(IPath path, IClasspathEntry[] entries) {
+ fPath= path;
+ fEntries= entries;
+ }
+
+ public IClasspathEntry[] getClasspathEntries() {
+ return fEntries;
+ }
+
+ public String getDescription() {
+ return "JavaFX SDK";
+ }
+
+ public int getKind() {
+ return IClasspathContainer.K_APPLICATION;
+ }
+
+ public IPath getPath() {
+ return fPath;
+ }
+
+ }
+
+ @Override
+ public void initialize(IPath containerPath, IJavaProject project)
+ throws CoreException {
+ if (isValidJUnitContainerPath(containerPath)) {
+ JavaFXContainer container = getNewContainer(containerPath, project);
+
+ JavaCore.setClasspathContainer(containerPath, new IJavaProject[] { project }, new IClasspathContainer[] { container }, null);
+ }
+ }
+
+ private static JavaFXContainer getNewContainer(IPath containerPath, IJavaProject project) {
+ IClasspathEntry entry= null;
+ entry= BuildPathSupport.getJavaFXLibraryEntry(project);
+
+ IClasspathEntry[] entries;
+ if (entry == null) {
+ entries= new IClasspathEntry[] { };
+ } else {
+ entries= new IClasspathEntry[] { entry };
+ }
+ return new JavaFXContainer(containerPath, entries);
+ }
+
+ private static boolean isValidJUnitContainerPath(IPath path) {
+ return path != null && JavaFXCore.JAVAFX_CONTAINER_ID.equals(path.segment(0));
+ }
+}
diff --git a/bundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/internal/JavaFXCorePlugin.java b/bundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/internal/JavaFXCorePlugin.java
new file mode 100755
index 000000000..d5ab37eaf
--- /dev/null
+++ b/bundles/tooling/org.eclipse.fx.ide.jdt.core/src/org/eclipse/fx/ide/jdt/core/internal/JavaFXCorePlugin.java
@@ -0,0 +1,17 @@
+/*******************************************************************************
+ * Copyright (c) 2012 BestSolution.at and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Tom Schindl<tom.schindl@bestsolution.at> - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.fx.ide.jdt.core.internal;
+
+import org.eclipse.core.runtime.Plugin;
+
+public class JavaFXCorePlugin extends Plugin {
+ public static final String PLUGIN_ID= "org.eclipse.fx.ide.jdt.core"; //$NON-NLS-1$
+}
diff --git a/releng/org.eclipse.fx.ide.releng/.project b/releng/org.eclipse.fx.ide.releng/.project
new file mode 100644
index 000000000..b5c2ab933
--- /dev/null
+++ b/releng/org.eclipse.fx.ide.releng/.project
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.fx.ide.releng</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ </natures>
+</projectDescription>
diff --git a/releng/org.eclipse.fx.ide.releng/pom.xml b/releng/org.eclipse.fx.ide.releng/pom.xml
new file mode 100755
index 000000000..64a23d64d
--- /dev/null
+++ b/releng/org.eclipse.fx.ide.releng/pom.xml
@@ -0,0 +1,196 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
+ xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <name>e(fx)clipse IDE build</name>
+
+ <prerequisites>
+ <maven>3.0</maven>
+ </prerequisites>
+
+ <groupId>org.eclipse.fx.ide</groupId>
+ <artifactId>releng</artifactId>
+ <version>0.8.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <properties>
+ <tycho-version>0.16.0</tycho-version>
+ <junit-version>4.8.1</junit-version>
+ <mockito-version>1.8.4</mockito-version>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <platform-version>[3.7,3.8)</platform-version>
+ </properties>
+
+ <modules>
+
+ <module>../../bundles/tooling/org.eclipse.fx.ide.jdt.core</module>
+ </modules>
+
+ <repositories>
+ <repository>
+ <id>indigo</id>
+ <layout>p2</layout>
+ <url>http://download.eclipse.org/releases/indigo</url>
+ </repository>
+ <!-- repository>
+ <id>xtext</id>
+ <layout>p2</layout>
+ <url>http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/</url>
+ </repository>
+
+ <repository>
+ <id>e4</id>
+ <layout>p2</layout>
+ <url>http://download.eclipse.org/e4/updates/0.12-I-builds/</url>
+ </repository>
+ <repository>
+ <id>local-efx</id>
+ <layout>p2</layout>
+ <url>file:///Users/tomschindl/Documents/e-workspaces/bitbucketmgr/target</url>
+ </repository-->
+ </repositories>
+
+ <pluginRepositories>
+ <pluginRepository>
+ <id>tycho</id>
+ <url>http://repository.sonatype.org/content/groups/sonatype-public-grid</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+
+ <build>
+
+ <!-- build plugins -->
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-maven-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <extensions>true</extensions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>target-platform-configuration</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <resolver>p2</resolver>
+ <pomDependencies>consider</pomDependencies>
+ <environments>
+ <environment>
+ <os>linux</os>
+ <ws>gtk</ws>
+ <arch>x86</arch>
+ </environment>
+ <environment>
+ <os>linux</os>
+ <ws>gtk</ws>
+ <arch>x86_64</arch>
+ </environment>
+ <environment>
+ <os>win32</os>
+ <ws>win32</ws>
+ <arch>x86</arch>
+ </environment>
+ <environment>
+ <os>win32</os>
+ <ws>win32</ws>
+ <arch>x86_64</arch>
+ </environment>
+ <environment>
+ <os>macosx</os>
+ <ws>cocoa</ws>
+ <arch>x86_64</arch>
+ </environment>
+ </environments>
+ </configuration>
+ </plugin>
+ </plugins>
+
+
+ <!-- defines the default settings for the used plugins -->
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-compiler-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <encoding>UTF-8</encoding>
+ <!-- mvn install:install-file -Dfile=/Users/tomschindl/Applications/javafx-sdk2.2.0-beta/rt/lib/jfxrt.jar -DgroupId=javafx -DartifactId=javafx.mvn -Dversion=2.2.0-SNAPSHOT -Dpackaging=jar -DgeneratePom=true -->
+ <extraClasspathElements>
+ <extraClasspathElement>
+ <groupId>javafx</groupId>
+ <artifactId>javafx.mvn</artifactId>
+ <version>2.2.0-SNAPSHOT</version>
+ </extraClasspathElement>
+ </extraClasspathElements>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-source-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <executions>
+ <execution>
+ <id>plugin-source</id>
+ <goals>
+ <goal>plugin-source</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho.extras</groupId>
+ <artifactId>tycho-source-feature-plugin</artifactId>
+ <!-- version>${tycho-version}</version-->
+ <executions>
+ <execution>
+ <id>source-feature</id>
+ <phase>package</phase>
+ <goals>
+ <goal>source-feature</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-packaging-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <archiveSite>true</archiveSite>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>${junit-version}</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-core</artifactId>
+ <version>${mockito-version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+</project> \ No newline at end of file

Back to the top