Browse Source

REPORT-53216 加速查找 过滤可能的设计器中类

feature/10.0
hades 3 years ago
parent
commit
c7e5f22acf
  1. 4
      designer-base/src/main/java/com/fr/design/mod/ModClassFilter.java

4
designer-base/src/main/java/com/fr/design/mod/ModClassFilter.java

@ -17,6 +17,8 @@ public class ModClassFilter implements Filter<String> {
private static final Filter<String> INSTANCE = new ModClassFilter();
private static final String DESIGN_PREFIX = "com.fr.design";
public static Filter<String> getInstance() {
return INSTANCE;
}
@ -31,6 +33,6 @@ public class ModClassFilter implements Filter<String> {
@Override
public boolean accept(String s) {
return FILTER_SET.contains(s);
return FILTER_SET.contains(s) || s.startsWith(DESIGN_PREFIX);
}
}

Loading…
Cancel
Save