use of com.intellij.uiDesigner.propertyInspector.IntrospectedProperty in project intellij-community by JetBrains.
the class Palette method getInplaceProperty.
/**
* @return "inplace" property for the component with the specified class.
* <b>DO NOT USE THIS METHOD DIRECTLY</b>. Use {@link RadComponent#getInplaceProperty(int, int) }
* instead.
*/
@Nullable
public IntrospectedProperty getInplaceProperty(@NotNull final RadComponent component) {
final String inplaceProperty = Properties.getInstance().getInplaceProperty(component.getComponentClass());
final IntrospectedProperty[] properties = getIntrospectedProperties(component);
for (int i = properties.length - 1; i >= 0; i--) {
final IntrospectedProperty property = properties[i];
if (property.getName().equals(inplaceProperty)) {
return property;
}
}
return null;
}
Aggregations