Search in sources :

Example 11 with IntrospectedProperty

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;
}
Also used : IntrospectedProperty(com.intellij.uiDesigner.propertyInspector.IntrospectedProperty) Nullable(org.jetbrains.annotations.Nullable)

Aggregations

IntrospectedProperty (com.intellij.uiDesigner.propertyInspector.IntrospectedProperty)11 Palette (com.intellij.uiDesigner.palette.Palette)3 RadComponent (com.intellij.uiDesigner.radComponents.RadComponent)3 Nullable (org.jetbrains.annotations.Nullable)3 ArrayList (java.util.ArrayList)2 NotNull (org.jetbrains.annotations.NotNull)2 DocumentationComponent (com.intellij.codeInsight.documentation.DocumentationComponent)1 DocumentationManager (com.intellij.codeInsight.documentation.DocumentationManager)1 Disposable (com.intellij.openapi.Disposable)1 JBPopup (com.intellij.openapi.ui.popup.JBPopup)1 PsiClass (com.intellij.psi.PsiClass)1 PsiMethod (com.intellij.psi.PsiMethod)1 JBColor (com.intellij.ui.JBColor)1 TabbedPaneWrapper (com.intellij.ui.TabbedPaneWrapper)1 RelativePoint (com.intellij.ui.awt.RelativePoint)1 Properties (com.intellij.uiDesigner.Properties)1 SwingProperties (com.intellij.uiDesigner.SwingProperties)1 RecursiveFormNestingException (com.intellij.uiDesigner.compiler.RecursiveFormNestingException)1 IProperty (com.intellij.uiDesigner.lw.IProperty)1 PsiNestedFormLoader (com.intellij.uiDesigner.make.PsiNestedFormLoader)1