|
|
@ -9,6 +9,7 @@ import com.fr.design.selection.QuickEditor; |
|
|
|
import com.fr.design.ui.util.UIUtil; |
|
|
|
import com.fr.design.ui.util.UIUtil; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
import com.fr.third.springframework.util.ReflectionUtils; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.Action; |
|
|
|
import javax.swing.Action; |
|
|
|
import javax.swing.KeyStroke; |
|
|
|
import javax.swing.KeyStroke; |
|
|
@ -241,7 +242,7 @@ public class ActionFactory { |
|
|
|
public static UpdateAction createAction(Class clazz) { |
|
|
|
public static UpdateAction createAction(Class clazz) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
Constructor<? extends UpdateAction> c = clazz.getDeclaredConstructor(); |
|
|
|
Constructor<? extends UpdateAction> c = clazz.getDeclaredConstructor(); |
|
|
|
c.setAccessible(true); |
|
|
|
ReflectionUtils.makeAccessible(c); |
|
|
|
return c.newInstance(); |
|
|
|
return c.newInstance(); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
@ -398,7 +399,7 @@ public class ActionFactory { |
|
|
|
} |
|
|
|
} |
|
|
|
try { |
|
|
|
try { |
|
|
|
Constructor<? extends QuickEditor> constructor = cClazz.getDeclaredConstructor(); |
|
|
|
Constructor<? extends QuickEditor> constructor = cClazz.getDeclaredConstructor(); |
|
|
|
constructor.setAccessible(true); |
|
|
|
ReflectionUtils.makeAccessible(constructor); |
|
|
|
return constructor.newInstance(); |
|
|
|
return constructor.newInstance(); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|