javafx: accept no params handlers (IDEA-102017)

This commit is contained in:
anna
2013-02-27 19:20:36 +01:00
parent a91d63365b
commit 84bd50994a
4 changed files with 15 additions and 0 deletions
@@ -93,6 +93,11 @@ public class JavaFXHighlightingTest extends DaemonAnalyzerTestCase {
doDoTest(false, false);
}
public void testNoParamsHandler() throws Exception {
configureByFiles(null, getTestName(true) + ".fxml", getTestName(false) + ".java");
doDoTest(false, false);
}
private void doTestIdController() throws Exception {
final String controllerClassName = getTestName(false) + "Controller";
configureByFiles(null, getTestName(true) + ".fxml", controllerClassName + ".java");
@@ -79,6 +79,7 @@ public class JavaFxEventHandlerReference extends PsiReferenceBase<XmlAttributeVa
return true;
}
}
return parameters.length == 0;
}
return false;
}
@@ -0,0 +1,4 @@
public class Controller {
public void sayHelloWorld() {
}
}
@@ -0,0 +1,5 @@
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.GridPane?>
<GridPane xmlns:fx="http://javafx.com/fxml" fx:controller="Controller">
<Button onAction="#sayHelloWorld"/>
</GridPane>