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!