mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Storyboard format
This commit is contained in:
@@ -465,7 +465,6 @@ public abstract class RadComponent extends PropertiesContainer {
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
public static List<ErrorInfo> getError(RadComponent component) {
|
||||
List<ErrorInfo> errorInfos = component.getClientProperty(ERROR_KEY);
|
||||
return errorInfos == null ? Collections.<ErrorInfo>emptyList() : errorInfos;
|
||||
@@ -558,4 +557,17 @@ public abstract class RadComponent extends PropertiesContainer {
|
||||
|
||||
return components;
|
||||
}
|
||||
|
||||
public boolean isAncestorFor(@NotNull RadComponent component, boolean strict) {
|
||||
RadComponent parent = strict ? component.getParent() : component;
|
||||
while (true) {
|
||||
if (parent == null) {
|
||||
return false;
|
||||
}
|
||||
if (parent == this) {
|
||||
return true;
|
||||
}
|
||||
parent = parent.getParent();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user