* Create object from URL * 从 URL 创建对象
(pkgName: string, resName: string)
| 173 | * 从 URL 创建对象 |
| 174 | */ |
| 175 | public static createObject(pkgName: string, resName: string): GObject | null { |
| 176 | const pkg = UIPackage.getByName(pkgName); |
| 177 | if (pkg) { |
| 178 | return pkg.createObject(resName); |
| 179 | } |
| 180 | return null; |
| 181 | } |
| 182 | |
| 183 | /** |
| 184 | * Create object from URL string |
no test coverage detected