use of org.jetbrains.plugins.javaFX.fxml.descriptors.JavaFxRootTagDescriptor in project intellij-community by JetBrains.
the class JavaFxNamespaceDescriptor method getElementDescriptor.
@Nullable
@Override
public XmlElementDescriptor getElementDescriptor(@NotNull XmlTag tag) {
final XmlTag parentTag = tag.getParentTag();
if (parentTag != null) {
final XmlElementDescriptor descriptor = parentTag.getDescriptor();
return descriptor != null ? descriptor.getElementDescriptor(tag, parentTag) : null;
}
final String name = tag.getName();
if (FxmlConstants.FX_ROOT.equals(name)) {
return new JavaFxRootTagDescriptor(tag);
}
return new JavaFxClassTagDescriptor(name, tag);
}
Aggregations