mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 21:50:54 +07:00
17 lines
287 B
Java
17 lines
287 B
Java
class Test {
|
|
|
|
boolean native isCancelled();
|
|
|
|
Node findRoot(Node n) {
|
|
while(!isCancelled()) {
|
|
Node temp = n.getParent();
|
|
if (!(temp != null)) break;
|
|
n = temp;
|
|
}
|
|
return n;
|
|
}
|
|
}
|
|
interface Node {
|
|
Node getParent();
|
|
}
|