JUnit does the same, and I just can’t figure out how…

I guess thats because of this entry in the Properties > Java Build Path > Libraries > Add Library wizard:

How can I do the same and include my library in this wizard from my plugin, i.e. make it available to a user in workspace?
OK, there are three different extension points you need to look at. The easiest way is to look at the JUnit plugin itself (there are four)
So, you can investigate the JUnit plugins, but these are the extension points you’ll need:
For the Add Library, look at the extension point
org.eclipse.jdt.ui.classpathContainerPage. From the JUnit plugin.xml:So this is implemented as
JUnitContainerWizardPage. This extendsIClasspathContainerPageandIClasspathContainerPageExtension.For the quickfix and classpathfix see the extension points org.eclipse.jdt.ui.quickFixProcessors and org.eclipse.jdt.ui.classpathFixProcessors. From the JUnit plugin.xml again: