mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 06:20:54 +07:00
15 lines
265 B
Java
15 lines
265 B
Java
class Test {
|
|
|
|
boolean native isCancelled();
|
|
|
|
Node findRoot(Node n) {
|
|
while(!isCancelled() && n.getParent() != null) {
|
|
n = <selection>n.getParent()</selection>;
|
|
}
|
|
return n;
|
|
}
|
|
}
|
|
interface Node {
|
|
Node getParent();
|
|
}
|