Skip to content

Commit

Permalink
BDE-221:remove usages of deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubhamnuxeo committed Mar 3, 2023
1 parent 3e99b43 commit 2a5078b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/scripts.babel/bkg/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const checkDependencies = `import groovy.json.JsonOutput;
import org.nuxeo.ecm.admin.runtime.RuntimeInstrospection;
import org.nuxeo.runtime.api.Framework;
def pm = Framework.getLocalService(PackageManager.class);
def pm = Framework.getService(PackageManager.class);
def snapshotPkg = StudioSnapshotHelper.getSnapshot(pm.listRemoteAssociatedStudioPackages());
def nxInstance = PlatformVersionHelper.getPlatformFilter();
Expand Down
4 changes: 2 additions & 2 deletions app/scripts.babel/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ limitations under the License.
import org.nuxeo.ecm.admin.runtime.RuntimeInstrospection;
import org.nuxeo.runtime.api.Framework;
def pm = Framework.getLocalService(PackageManager.class);
def pm = Framework.getService(PackageManager.class);
def snapshotPkg = StudioSnapshotHelper.getSnapshot(pm.listRemoteAssociatedStudioPackages());
def pkgName = snapshotPkg == null ? null : snapshotPkg.getName();
def bundles = RuntimeInstrospection.getInfo();
Expand All @@ -37,7 +37,7 @@ limitations under the License.
import org.nuxeo.connect.packages.PackageManager;
import org.nuxeo.runtime.api.Framework;
def pm = Framework.getLocalService(PackageManager.class);
def pm = Framework.getService(PackageManager.class);
def addons = pm.listInstalledPackagesNames();
println JsonOutput.toJson([installed: addons]);`;
Expand Down

0 comments on commit 2a5078b

Please sign in to comment.