Search in sources :

Example 1 with ClasspathPanelImpl

use of com.intellij.openapi.roots.ui.configuration.classpath.ClasspathPanelImpl in project intellij-community by JetBrains.

the class ClasspathEditor method createComponentImpl.

@Override
public JComponent createComponentImpl() {
    myPanel = new ClasspathPanelImpl(getState());
    final JPanel panel = new JPanel(new BorderLayout());
    panel.setBorder(BorderFactory.createEmptyBorder(6, 6, 6, 6));
    panel.add(myPanel, BorderLayout.CENTER);
    final ModuleJdkConfigurable jdkConfigurable = new ModuleJdkConfigurable(this, ProjectStructureConfigurable.getInstance(myProject).getProjectJdksModel()) {

        @Override
        protected ModifiableRootModel getRootModel() {
            return getState().getRootModel();
        }
    };
    panel.add(jdkConfigurable.createComponent(), BorderLayout.NORTH);
    jdkConfigurable.reset();
    registerDisposable(jdkConfigurable);
    ClasspathStorageProvider[] providers = ClasspathStorageProvider.EXTENSION_POINT_NAME.getExtensions();
    if (providers.length > 0) {
        myClasspathFormatPanel = new ClasspathFormatPanel(providers);
        panel.add(myClasspathFormatPanel, BorderLayout.SOUTH);
    }
    return panel;
}
Also used : ClasspathStorageProvider(com.intellij.openapi.roots.impl.storage.ClasspathStorageProvider) ClasspathPanelImpl(com.intellij.openapi.roots.ui.configuration.classpath.ClasspathPanelImpl)

Aggregations

ClasspathStorageProvider (com.intellij.openapi.roots.impl.storage.ClasspathStorageProvider)1 ClasspathPanelImpl (com.intellij.openapi.roots.ui.configuration.classpath.ClasspathPanelImpl)1