mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
javafx: accept no params handlers (IDEA-102017)
This commit is contained in:
+5
@@ -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");
|
||||
|
||||
+1
@@ -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>
|
||||
Reference in New Issue
Block a user