javafx: include property class into completion

(cherry picked from commit 95d73a61aee18342e97aeeecb7d35108f966e0a1)
This commit is contained in:
anna
2013-03-22 21:38:27 +01:00
parent b34906b852
commit 6e51d1f0d2
4 changed files with 21 additions and 0 deletions
@@ -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);
@@ -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>