(Object obj, String color)
| 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 | // 修改之后刷新列表 防止数据不一致 |
no outgoing calls
no test coverage detected