mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
javafx: accept overridden setters (IDEA-112151)
This commit is contained in:
+4
@@ -245,6 +245,10 @@ public class JavaFXHighlightingTest extends AbstractJavaFXTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testReadOnly1() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testScriptSource() throws Exception {
|
||||
doTest("s1.js");
|
||||
}
|
||||
|
||||
@@ -187,7 +187,7 @@ public class JavaFxPsiUtil {
|
||||
public static PsiMethod findPropertySetter(String attributeName, PsiClass classWithStaticProperty) {
|
||||
final String setterName = PropertyUtil.suggestSetterName(StringUtil.getShortName(attributeName));
|
||||
final PsiMethod[] setters = classWithStaticProperty.findMethodsByName(setterName, true);
|
||||
if (setters.length == 1) {
|
||||
if (setters.length >= 1) {
|
||||
return setters[0];
|
||||
}
|
||||
return null;
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.control.RadioButton?>
|
||||
<?import javafx.scene.control.ToggleGroup?>
|
||||
<?import javafx.scene.layout.StackPane?>
|
||||
<StackPane xmlns:fx="http://javafx.com/fxml">
|
||||
<RadioButton fx:id="option1" disable="true" mnemonicParsing="false" text="Option 1">
|
||||
<toggleGroup>
|
||||
<ToggleGroup fx:id="toggleGroup1"/>
|
||||
</toggleGroup>
|
||||
</RadioButton>
|
||||
<RadioButton fx:id="option2" disable="true" mnemonicParsing="false" text="Option 2" toggleGroup="$toggleGroup1"/>
|
||||
</StackPane>
|
||||
Reference in New Issue
Block a user