MCPcopy Create free account
hub / github.com/Chave0v0/API-Highlighter / setHighlightColor

Method setHighlightColor

src/main/java/com/chave/utils/Util.java:45–51  ·  view source on GitHub ↗
(Object obj, String color)

Source from the content-addressed store, hash-verified

43
44
45 public static void setHighlightColor(Object obj, String color) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
46 Class<?> requestClass = obj.getClass();
47 Method annotationsMethod = requestClass.getMethod("annotations");
48 Annotations annotations = (Annotations) annotationsMethod.invoke(obj, null);
49
50 annotations.setHighlightColor(ObjectFactoryLocator.FACTORY.highlightColor(color));
51 }
52
53 public static synchronized void flushAPIList(JTable table) {
54 // 修改之后刷新列表 防止数据不一致

Callers 3

actionPerformedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected