* Create object from URL string * 从 URL 字符串创建对象
(url: string)
| 185 | * 从 URL 字符串创建对象 |
| 186 | */ |
| 187 | public static createObjectFromURL(url: string): GObject | null { |
| 188 | const pi = UIPackage.getItemByURL(url); |
| 189 | if (pi) { |
| 190 | return pi.owner?.internalCreateObject(pi) ?? null; |
| 191 | } |
| 192 | return null; |
| 193 | } |
| 194 | |
| 195 | /** |
| 196 | * Get item by URL |
no test coverage detected