1.1 --- a/samples/extensibleicon/src/org/apidesign/extensibleicon/CatQuery.java Sat Jun 14 09:53:51 2008 +0200
1.2 +++ b/samples/extensibleicon/src/org/apidesign/extensibleicon/CatQuery.java Sat Jun 14 09:56:12 2008 +0200
1.3 @@ -7,14 +7,18 @@
1.4 private CatQuery() { }
1.5
1.6 public static boolean isCat(ExtIcon icon) {
1.7 - for (CatQueryImplementation impl : Lookup.getDefault().lookupAll(CatQueryImplementation.class)) {
1.8 + for (CatQueryImplementation impl :
1.9 + Lookup.getDefault().lookupAll(CatQueryImplementation.class)
1.10 + ) {
1.11 Boolean res = impl.isCat(icon);
1.12 if (res != null) {
1.13 return res;
1.14 }
1.15 }
1.16
1.17 - for (CatQueryImplementation impl : icon.getLookup().lookupAll(CatQueryImplementation.class)) {
1.18 + for (CatQueryImplementation impl :
1.19 + icon.getLookup().lookupAll(CatQueryImplementation.class)
1.20 + ) {
1.21 Boolean res = impl.isCat(icon);
1.22 if (res != null) {
1.23 return res;