Exadel JavaFX Plug-in for Eclipse

Community forum for all questions, comments and feedback related to Exadel JavaFX plug-in for Eclipse

"String index out of range: -1"

Submitted by asd on Thu, 09/15/2011 - 03:54

There is my patch against trunk rev 166

### Eclipse Workspace Patch 1.0
#P EFX
Index: ide/plugins/com.exadel.javafx.ide.ui/src/com/exadel/javafx/ide/internal/ui/scripteditor/actions/refactoring/PackageDeclaration.java
===================================================================
--- ide/plugins/com.exadel.javafx.ide.ui/src/com/exadel/javafx/ide/internal/ui/scripteditor/actions/refactoring/PackageDeclaration.java (revision 166)
+++ ide/plugins/com.exadel.javafx.ide.ui/src/com/exadel/javafx/ide/internal/ui/scripteditor/actions/refactoring/PackageDeclaration.java (working copy)
@@ -4,6 +4,8 @@
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IOpenable;
import org.eclipse.jdt.core.IPackageDeclaration;
+import org.eclipse.jdt.core.ISourceRange;
+import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.internal.core.JavaElement;
import org.eclipse.jdt.internal.core.SourceRefElement;

@@ -63,4 +65,10 @@
public IJavaElement getParent() {
return this.parent;
}
+
+ @Override
+ public ISourceRange getNameRange() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
}
Index: ide/plugins/com.exadel.javafx.ide.ui/src/com/exadel/javafx/ide/internal/ui/scripteditor/actions/refactoring/JFXCompilationUnit.java
===================================================================
--- ide/plugins/com.exadel.javafx.ide.ui/src/com/exadel/javafx/ide/internal/ui/scripteditor/actions/refactoring/JFXCompilationUnit.java (revision 166)
+++ ide/plugins/com.exadel.javafx.ide.ui/src/com/exadel/javafx/ide/internal/ui/scripteditor/actions/refactoring/JFXCompilationUnit.java (working copy)
@@ -701,5 +701,11 @@

protected IStatus validateExistence(IResource underlyingResource) {
return JavaModelStatus.VERIFIED_OK;
- }
+ }
+
+ @Override
+ public ISourceRange getNameRange() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
}
Index: ide/plugins/com.exadel.javafx.ide.ui/src/com/exadel/javafx/ide/internal/ui/scripteditor/actions/refactoring/ImportRewrite.java
===================================================================
--- ide/plugins/com.exadel.javafx.ide.ui/src/com/exadel/javafx/ide/internal/ui/scripteditor/actions/refactoring/ImportRewrite.java (revision 166)
+++ ide/plugins/com.exadel.javafx.ide.ui/src/com/exadel/javafx/ide/internal/ui/scripteditor/actions/refactoring/ImportRewrite.java (working copy)
@@ -11,9 +11,9 @@
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.ISourceRange;
+import org.eclipse.jdt.core.SourceRange;
import org.eclipse.jdt.core.dom.ASTParser;
import org.eclipse.jdt.core.dom.CompilationUnit;
-import org.eclipse.jdt.internal.core.SourceRange;
import org.eclipse.jdt.internal.core.util.Messages;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
Index: ide/plugins/com.exadel.javafx.ide.ui/src/com/exadel/javafx/ide/internal/ui/wizard/template/shape/ImageShapeDescriptor.java
===================================================================
--- ide/plugins/com.exadel.javafx.ide.ui/src/com/exadel/javafx/ide/internal/ui/wizard/template/shape/ImageShapeDescriptor.java (revision 166)
+++ ide/plugins/com.exadel.javafx.ide.ui/src/com/exadel/javafx/ide/internal/ui/wizard/template/shape/ImageShapeDescriptor.java (working copy)
@@ -84,7 +84,8 @@
String projectName = page.getContainerFullPath().toString();
if (projectName.charAt(0) == '/')
projectName = projectName.substring(1);
- projectName = projectName.substring(0, projectName.indexOf('/'));
+ if (projectName.charAt(0) == '/')
+ projectName = projectName.substring(0, projectName.indexOf('/'));

rd = new ElementTreeSelectionDialog(comp.getShell(),
new WorkbenchLabelProvider(), new BaseWorkbenchContentProvider());
Index: ide/plugins/com.exadel.javafx.ide.core/src/com/exadel/javafx/ide/core/FXMethod.java
===================================================================
--- ide/plugins/com.exadel.javafx.ide.core/src/com/exadel/javafx/ide/core/FXMethod.java (revision 166)
+++ ide/plugins/com.exadel.javafx.ide.core/src/com/exadel/javafx/ide/core/FXMethod.java (working copy)
@@ -14,6 +14,7 @@
import org.eclipse.jdt.core.IAnnotation;
import org.eclipse.jdt.core.IField;
import org.eclipse.jdt.core.IJavaElement;
+import org.eclipse.jdt.core.ILocalVariable;
import org.eclipse.jdt.core.IMemberValuePair;
import org.eclipse.jdt.core.IMethod;
import org.eclipse.jdt.core.IType;
@@ -319,4 +320,13 @@
resolvedHandle.occurrenceCount = this.occurrenceCount;
return resolvedHandle;
}
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jdt.core.IMethod#getParameters()
+ */
+ @Override
+ public ILocalVariable[] getParameters() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
}

btw: stu*id registration to post a patch!
but thank you for your fine plugin!

Build desktop application

Submitted by PittMarson on Fri, 03/18/2011 - 04:22

Hi !

I was wondering how to deploy my desktop javafx application without using command line.
How can I simply generate a jar to have the same entry point as when i right click -> Run as -> JavaFX application ?
I read in another post how to do this for Web Start applications, but it's not this type of project...

Thank you in advance !

PS : my colleagues installed NetBeans to do this simply, but I really don't like it... please save me from it !

Problem with utf-8 and special chars.

Submitted by PittMarson on Fri, 03/11/2011 - 01:06

Hi !

First, thanks for this plugin ! As i'm used to work with Eclipse, it saved me from migrating to Netbeans.

But with my team we encountered a problem with chars like €.
Eclipse is fully configurated in utf-8.
Let's say we have an euro symbol in a string in a .fx file, that will be displayed.

On Linux (Ubuntu), everything works like a charm, but on Windows it strangely (?) doesn't display good chars.

So my question is, how to ensure the command :

javafxc -encoding UTF-8 somefile.jx

is used to build from fx files with the plugin ?

And subsidiary, would there be another reason why it's not well displayed ?

Thanks in advance

Pitt

p.s. : sorry for my english...

Dependency error, help me please?

Submitted by hugocunha on Fri, 02/18/2011 - 05:06

I got this error while installing the javafx plugin version 1.3.5, what I have to do?
Error:
Cannot complete the install because of a conflicting dependency.
Software being installed: Exadel JavaFX Plug-in 1.3.5.N29 (com.exadel.javafx.ide.feature.group 1.3.5.N29)
Software currently installed: Eclipse IDE for Java EE Developers 1.2.1.20090918-0703 (epp.package.jee 1.2.1.20090918-0703)
Only one of the following can be installed at once:
Refactoring UI 3.4.100.v20090604 (org.eclipse.ltk.ui.refactoring 3.4.100.v20090604)
Refactoring UI 3.4.101.r352_v20100209 (org.eclipse.ltk.ui.refactoring 3.4.101.r352_v20100209)
Cannot satisfy dependency:
From: Exadel JavaFX Plug-in 1.3.5.N29 (com.exadel.javafx.ide.feature.group 1.3.5.N29)
To: com.exadel.javafx.ide.ui [1.3.5.N29]
Cannot satisfy dependency:
From: Exadel JavaFX UI Plug-in 1.3.5.N29 (com.exadel.javafx.ide.ui 1.3.5.N29)
To: bundle org.eclipse.ltk.ui.refactoring 3.4.101
Cannot satisfy dependency:
From: Eclipse IDE for Java EE Developers 1.2.1.20090918-0703 (epp.package.jee 1.2.1.20090918-0703)
To: org.eclipse.epp.package.jee.feature.feature.group [1.2.1.20090918-0703]
Cannot satisfy dependency:
From: Java EE IDE Feature 1.2.1.20090918-0703 (org.eclipse.epp.package.jee.feature.feature.group 1.2.1.20090918-0703)
To: org.eclipse.platform.feature.group [3.5.1.R35x_v20090910-9gEeG1_FthkNDSP2odXdThaOu9GFDPn83DGB7]
Cannot satisfy dependency:
From: Eclipse Platform 3.5.1.R35x_v20090910-9gEeG1_FthkNDSP2odXdThaOu9GFDPn83DGB7 (org.eclipse.platform.feature.group 3.5.1.R35x_v20090910-9gEeG1_FthkNDSP2odXdThaOu9GFDPn83DGB7)
To: org.eclipse.ltk.ui.refactoring [3.4.100.v20090604]

Regards, Hugo.

java.lang.NoClassDefFoundError

Submitted by rsilva4 on Tue, 11/09/2010 - 04:10

Hi,

I'm new to Java Fx and after reading some opinions I choose exadel's eclipse plugin to aid my applications development. I managed to run some examples without any problems. But after adding some dependencies to the project, either via maven (m2eclipse) or directly configuring the required Jars, I get java.lang.NoClassDefFoundError for any class that is present in those dependencies.

Compile is fine no errors at all.

I've google a lot and read some posts in this forum, however I can't find no simple answer for this issue.

The plugin version is 1.3.5, javafx SDK is 1.3 and Eclipse 3.5.2.

Tried creating a new project from scratch, same result.

Migrate from Eclipse-Exadel to Netbeans

Submitted by loeschg on Thu, 10/14/2010 - 11:52

I started developing a Java FX program in Netbeans while simultaneously developing the backend using Eclipse (it's a superior IDE in this sense). This got to be a bit of a hassle having things in two different IDE's, so I made the switch to Exadel's JFX plugin.

This is proving to be a mistake. The toolset available in Netbeans is superior (my opinion), and I would really like to switch back to Netbeans. I'm unable to figure out how exactly to export/import the project back to Netbeans. I have tried importing an Eclipse project in Netbeans, but I'm not able to actually get the project to run (doesn't recognize a main class).

I know this is counter to what is probably desired by the creators, but any help would be fantastic. I really would like to use the Eclipse environment, but I just can't tolerate the long build times (have to uncheck Build-Automatically) in the middle of coding. I also had another issue where comments were treated as syntax errors??

This causes the code to fail to compile. I checked the nightly as well and it has the same problem. Thanks.

JavaFX script -> Visage ?

Submitted by fmjrey on Tue, 09/28/2010 - 00:40

In the light of discontinued JavaFX script I was wondering how the team behind this plugin was feeling.
I certainly hope this plugin would still continue to live as a Visage plugin:
http://steveonjava.com/accouncing-visage/
http://visage-lang.org/
Remember: there's life after death!

Unable to run java fx in debug

Submitted by Ollie on Wed, 09/15/2010 - 00:54

Hi,

I am using the java fx plugin and I am unable to start my app in debug. Is debug supported or am I doing something wrong?

Release notes: http://exadel.org/javafxplugin-releasenotes (make sure to read about changes to run configuration)

Syndicate content