mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
javafx: include property class into completion
(cherry picked from commit 95d73a61aee18342e97aeeecb7d35108f966e0a1)
This commit is contained in:
+4
@@ -148,6 +148,10 @@ public class JavaFxCompletionTest extends LightFixtureCompletionTestCase {
|
||||
doTest("layoutY");
|
||||
}
|
||||
|
||||
public void testAllowPropertyTypeClass() throws Exception {
|
||||
doTest("ColumnConstraints");
|
||||
}
|
||||
|
||||
public void testReadOnly() throws Exception {
|
||||
configureByFile(getTestName(true) + ".fxml");
|
||||
assertTrue(myItems.length > 0);
|
||||
|
||||
+1
@@ -85,6 +85,7 @@ public class JavaFxPropertyElementDescriptor implements XmlElementDescriptor {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
descriptors.add(new JavaFxClassBackedElementDescriptor(aClass.getName(), aClass));
|
||||
}
|
||||
} else if (InheritanceUtil.isInheritor(psiType, JavaFxCommonClassNames.JAVAFX_BEANS_PROPERTY)) {
|
||||
final PsiType propertyType = JavaFxPsiUtil.getPropertyType(psiType, project);
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.layout.*?>
|
||||
<GridPane xmlns:fx="http://javafx.com/fxml" >
|
||||
<columnConstraints>
|
||||
<<caret>
|
||||
</columnConstraints>
|
||||
</GridPane>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.layout.*?>
|
||||
<GridPane xmlns:fx="http://javafx.com/fxml" >
|
||||
<columnConstraints>
|
||||
<ColumnConstraints
|
||||
</columnConstraints>
|
||||
</GridPane>
|
||||
Reference in New Issue
Block a user