Search in sources :

Example 6 with ProcessorConfigProfileImpl

use of org.jetbrains.jps.model.java.impl.compiler.ProcessorConfigProfileImpl in project intellij-community by JetBrains.

the class MavenAnnotationProcessorConfigurer method isSimilarProfiles.

private static boolean isSimilarProfiles(@Nullable ProcessorConfigProfile profile1, @Nullable ProcessorConfigProfile profile2) {
    if (profile1 == null || profile2 == null)
        return false;
    ProcessorConfigProfileImpl p1 = new ProcessorConfigProfileImpl(profile1);
    p1.setName("tmp");
    p1.clearModuleNames();
    ProcessorConfigProfileImpl p2 = new ProcessorConfigProfileImpl(profile2);
    p2.setName("tmp");
    p2.clearModuleNames();
    return p1.equals(p2);
}
Also used : ProcessorConfigProfileImpl(org.jetbrains.jps.model.java.impl.compiler.ProcessorConfigProfileImpl)

Aggregations

ProcessorConfigProfileImpl (org.jetbrains.jps.model.java.impl.compiler.ProcessorConfigProfileImpl)6 ProcessorConfigProfile (org.jetbrains.jps.model.java.compiler.ProcessorConfigProfile)5 Element (org.jdom.Element)2 CompilerConfigurationImpl (com.intellij.compiler.CompilerConfigurationImpl)1 State (com.intellij.openapi.components.State)1 Sdk (com.intellij.openapi.projectRoots.Sdk)1 Map (java.util.Map)1 DefaultMutableTreeNode (javax.swing.tree.DefaultMutableTreeNode)1 MavenProject (org.jetbrains.idea.maven.project.MavenProject)1