mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
javafx: simple true/false suggestions
(cherry picked from commit 17c51885eda041514949ead8ad5abd79710d6692)
This commit is contained in:
+6
@@ -153,6 +153,12 @@ public class JavaFxCompletionTest extends LightFixtureCompletionTestCase {
|
||||
assertDoesntContain(myFixture.getLookupElementStrings(), "Infinity");
|
||||
}
|
||||
|
||||
public void testBooleanValues() throws Exception {
|
||||
myFixture.configureByFiles(getTestName(true) + ".fxml");
|
||||
complete();
|
||||
assertContainsElements(myFixture.getLookupElementStrings(), "true", "false");
|
||||
}
|
||||
|
||||
public void testDefaultPropertyIncludeOnce() throws Exception {
|
||||
myFixture.configureByFiles(getTestName(true) + ".fxml");
|
||||
myItems = myFixture.completeBasic();
|
||||
|
||||
+2
@@ -83,6 +83,8 @@ public class JavaFxPropertyAttributeDescriptor implements XmlAttributeDescriptor
|
||||
final String propertyQName = getBoxedPropertyType(getDeclaration());
|
||||
if (CommonClassNames.JAVA_LANG_FLOAT.equals(propertyQName) || CommonClassNames.JAVA_LANG_DOUBLE.equals(propertyQName)) {
|
||||
return new String[] {"Infinity", "-Infinity", "NaN", "-NaN"};
|
||||
} else if (CommonClassNames.JAVA_LANG_BOOLEAN.equals(propertyQName)) {
|
||||
return new String[] {"true", "false"};
|
||||
}
|
||||
|
||||
return ArrayUtil.EMPTY_STRING_ARRAY;
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
<?import javafx.scene.layout.GridPane?>
|
||||
<GridPane xmlns:fx="http://javafx.com/fxml" focusTraversable="<caret>"/>
|
||||
Reference in New Issue
Block a user