@@ -445,6 +445,12 @@ public static boolean checkImportStatus() {
445445 return hasError ;
446446 }
447447
448+ // This method reserver for pack.
449+ public static List <ImportClassInfo > getImportClassContent (List <Object > arguments , IProgressMonitor monitor ) {
450+ ImportClassContentResult result = getImportClassContentWithResult (arguments , monitor );
451+ return result == null ? Collections .emptyList () : result .classInfoList ;
452+ }
453+
448454 /**
449455 * Get import class content for Copilot integration with detailed error reporting.
450456 * This method extracts information about imported classes from a Java file.
@@ -454,7 +460,7 @@ public static boolean checkImportStatus() {
454460 * @param monitor Progress monitor for cancellation support
455461 * @return ImportClassContentResult containing class information and error reason if applicable
456462 */
457- public static ImportClassContentResult getImportClassContent (List <Object > arguments , IProgressMonitor monitor ) {
463+ public static ImportClassContentResult getImportClassContentWithResult (List <Object > arguments , IProgressMonitor monitor ) {
458464 if (arguments == null || arguments .isEmpty ()) {
459465 return new ImportClassContentResult (ImportClassContentErrorReason .NULL_ARGUMENTS );
460466 }
@@ -619,6 +625,12 @@ private static String getSeverityString(int severity) {
619625 }
620626 }
621627
628+ // resverved for pack.
629+ public static List <DependencyInfo > getProjectDependencies (List <Object > arguments , IProgressMonitor monitor ) {
630+ ProjectDependenciesResult result = getProjectDependenciesWithResult (arguments , monitor );
631+ return result == null ? Collections .emptyList () : result .dependencyInfoList ;
632+ }
633+
622634
623635 /**
624636 * Get project dependencies information with detailed error reporting.
@@ -628,7 +640,7 @@ private static String getSeverityString(int severity) {
628640 * @param monitor Progress monitor for cancellation support
629641 * @return ProjectDependenciesResult containing dependency information and error reason if applicable
630642 */
631- public static ProjectDependenciesResult getProjectDependencies (List <Object > arguments , IProgressMonitor monitor ) {
643+ public static ProjectDependenciesResult getProjectDependenciesWithResult (List <Object > arguments , IProgressMonitor monitor ) {
632644 if (arguments == null || arguments .isEmpty ()) {
633645 return new ProjectDependenciesResult (ProjectDependenciesErrorReason .NULL_ARGUMENTS );
634646 }
0 commit comments