Index: com.exadel.javafx.ide.core/src/com/exadel/javafx/ide/internal/formatter/WhitespaceFormatStrategy.java =================================================================== --- com.exadel.javafx.ide.core/src/com/exadel/javafx/ide/internal/formatter/WhitespaceFormatStrategy.java (revision 161) +++ com.exadel.javafx.ide.core/src/com/exadel/javafx/ide/internal/formatter/WhitespaceFormatStrategy.java (working copy) @@ -86,8 +86,9 @@ */ private void processBinaryOperators(JavaFXToken token, List result, int index, JavaFXToken item) { if(isTokenBinaryOperator(token, index) && !isTokenBinaryOperator(token, index - 1) && !isTokenBinaryOperator(token, index + 1)) { - if(isPublicInitKeyword(token, item, index) || isAssignment(token, index + 1) || isKeyword(token, index - 1, ".") - || isUnaryOperator(token, index)) { + if(isPublicInitKeyword(token, item, index) || isPublicReadKeyword(token, item, index) + || isAssignment(token, index + 1) || isKeyword(token, index - 1, ".") + || isUnaryOperator(token, index)) { return; } @@ -172,6 +173,14 @@ return false; } + private boolean isPublicReadKeyword(JavaFXToken token, JavaFXToken item, int index) { + if(item.getValue().equals("-")) { + return isKeyword(token, index - 1, "public") && isKeyword(token, index + 1, "read"); + } + + return false; + } + /** * Check is assignment * @param token Index: com.exadel.javafx.ide.ui/src/com/exadel/javafx/ide/internal/ui/scripteditor/actions/refactoring/ImportRewrite.java =================================================================== --- com.exadel.javafx.ide.ui/src/com/exadel/javafx/ide/internal/ui/scripteditor/actions/refactoring/ImportRewrite.java (revision 161) +++ 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;