|
|
@ -38,12 +38,9 @@ public aspect TemplateProcessTracker { |
|
|
|
before(ActionEvent e) : onActionPerformed(e) { |
|
|
|
before(ActionEvent e) : onActionPerformed(e) { |
|
|
|
SourceLocation sl = thisJoinPoint.getSourceLocation(); |
|
|
|
SourceLocation sl = thisJoinPoint.getSourceLocation(); |
|
|
|
// !within(LogHandlerBar) 没用, 手动过滤 |
|
|
|
// !within(LogHandlerBar) 没用, 手动过滤 |
|
|
|
if (e != null && e.getSource().toString().contains("javax.swing.Timer")) { |
|
|
|
if (e.getSource().toString().contains("javax.swing.Timer")) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (e != null && e.getSource().getClass().getName().equals("com.fr.design.gui.imenu.UIMenuItem")) { |
|
|
|
|
|
|
|
System.out.print("在点击菜单\n" + thisJoinPointStaticPart.getSourceLocation() + thisJoinPoint); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//String log = String.format("%s:\n%s\n%s\n%s\n\n", new Date(), sl, e, e.getSource()); |
|
|
|
//String log = String.format("%s:\n%s\n%s\n%s\n\n", new Date(), sl, e, e.getSource()); |
|
|
|
String log = ""; |
|
|
|
String log = ""; |
|
|
|