Skip to content

Commit 750c681

Browse files
Problem during restore of ClassFileEditor
eclipse-jdt/eclipse.jdt.ui#2347 - Changed the RequiredPluginsClasspathContainer interface from IClasspathContainer to IAsyncClasspathContainer
1 parent f6d83fd commit 750c681

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/RequiredPluginsClasspathContainer.java

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
import org.eclipse.core.runtime.IExtensionRegistry;
4343
import org.eclipse.core.runtime.IPath;
4444
import org.eclipse.core.runtime.Platform;
45+
import org.eclipse.jdt.core.IAsyncClasspathContainer;
4546
import org.eclipse.jdt.core.IClasspathAttribute;
46-
import org.eclipse.jdt.core.IClasspathContainer;
4747
import org.eclipse.jdt.core.IClasspathEntry;
4848
import org.eclipse.jdt.core.JavaCore;
4949
import org.eclipse.osgi.service.resolver.BaseDescription;
@@ -70,7 +70,8 @@
7070
import aQute.bnd.build.Workspace;
7171
import aQute.bnd.osgi.Constants;
7272

73-
public class RequiredPluginsClasspathContainer extends PDEClasspathContainer implements IClasspathContainer {
73+
public class RequiredPluginsClasspathContainer extends PDEClasspathContainer
74+
implements IAsyncClasspathContainer {
7475

7576
@SuppressWarnings("nls")
7677
private static final Set<String> JUNIT5_RUNTIME_PLUGINS = Set.of("org.junit", //
@@ -736,4 +737,14 @@ public List<IProject> getAllProjectDependencies() {
736737
addImportedPackages = false;
737738
}
738739
}
740+
741+
@Override
742+
public boolean isInitialized() {
743+
return fEntries != null;
744+
}
745+
746+
@Override
747+
public void initialize() {
748+
getClasspathEntries();
749+
}
739750
}

0 commit comments

Comments
 (0)