Search in sources :

Example 1 with JpsContentEntry

use of com.intellij.project.model.impl.module.content.JpsContentEntry in project intellij-community by JetBrains.

the class MavenSourceFoldersModuleExtension method addJspSourceFolder.

private void addJspSourceFolder(@NotNull JpsModuleSourceRoot jpsModuleSourceRoot, @NotNull String url) {
    final JpsContentEntry dummyJpsContentEntry = new JpsContentEntry(myDummyJpsModule, myDummyJpsRootModel, url);
    final JpsSourceFolder jpsSourceFolder = new JpsSourceFolder(jpsModuleSourceRoot, dummyJpsContentEntry);
    myJpsSourceFolders.add(jpsSourceFolder);
    // since dummyJpsContentEntry created for each source folder, we will dispose it on that source folder disposal
    Disposer.register(jpsSourceFolder, dummyJpsContentEntry);
}
Also used : JpsContentEntry(com.intellij.project.model.impl.module.content.JpsContentEntry) JpsSourceFolder(com.intellij.project.model.impl.module.content.JpsSourceFolder)

Aggregations

JpsContentEntry (com.intellij.project.model.impl.module.content.JpsContentEntry)1 JpsSourceFolder (com.intellij.project.model.impl.module.content.JpsSourceFolder)1