mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
<loadForDefaultProject/> support
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
<orderEntry type="module" module-name="java-impl" />
|
||||
<orderEntry type="library" name="TestNG" level="project" />
|
||||
<orderEntry type="module" module-name="compiler-impl" />
|
||||
<orderEntry type="module" module-name="idea" scope="TEST" />
|
||||
</component>
|
||||
</module>
|
||||
|
||||
|
||||
@@ -61,5 +61,9 @@ public interface Component extends DomElement {
|
||||
@NotNull
|
||||
@SubTag(value = "skipForDefaultProject", indicator = true)
|
||||
GenericDomValue<Boolean> getSkipForDefaultProject();
|
||||
|
||||
@NotNull
|
||||
@SubTag(value = "loadForDefaultProject", indicator = true)
|
||||
GenericDomValue<Boolean> getLoadForDefaultProject();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<idea-plugin version="2">
|
||||
<project-components>
|
||||
<component>
|
||||
<implementation-class><error descr="Cannot resolve class or package 'foo'">foo</error>.<error descr="Cannot resolve class 'Bar'">Bar</error></implementation-class>
|
||||
<skipForDefaultProject/>
|
||||
<loadForDefaultProject/>
|
||||
<<error descr="Element unknown is not allowed here">unknown</error>/>
|
||||
</component>
|
||||
</project-components>
|
||||
</idea-plugin>
|
||||
@@ -165,6 +165,11 @@ public class PluginXmlFunctionalTest extends JavaCodeInsightFixtureTestCase {
|
||||
assertEquals("Extension Point bar", ElementDescriptionUtil.getElementDescription(element, UsageViewNodeTextLocation.INSTANCE));
|
||||
}
|
||||
|
||||
public void testLoadForDefaultProject() throws Exception {
|
||||
configureByFile();
|
||||
myFixture.testHighlighting(true, true, true);
|
||||
}
|
||||
|
||||
public static Class[] getInspectionClasses() {
|
||||
Class[] result = {
|
||||
//RegistrationProblemsInspection.class,
|
||||
|
||||
Reference in New Issue
Block a user