add single static import on type elements, e.g. inside annotations, type elements (IDEA-22130)

This commit is contained in:
anna
2011-08-26 13:12:06 +02:00
parent 6794da37dd
commit df6d79ce8a
5 changed files with 73 additions and 27 deletions

View File

@@ -0,0 +1,13 @@
// "Add static import for 'test.Bar.Foo'" "true"
package test;
import static test.Bar.Foo;
class Bar {
public static class Foo {}
}
public class OOO{
{
Foo foo;
}
}

View File

@@ -0,0 +1,11 @@
// "Add static import for 'test.Bar.Foo'" "true"
package test;
import static test.Bar.Foo;
class Bar {
public static @interface Foo {}
}
@Foo
public class OOO {
}

View File

@@ -0,0 +1,11 @@
// "Add static import for 'test.Bar.Foo'" "true"
package test;
class Bar {
public static class Foo {}
}
public class OOO{
{
Bar.<caret>Foo foo;
}
}

View File

@@ -0,0 +1,9 @@
// "Add static import for 'test.Bar.Foo'" "true"
package test;
class Bar {
public static @interface Foo {}
}
@Bar.<caret>Foo
public class OOO {
}