Browse Source

bug fix

master
XiaXiang 8 years ago
parent
commit
f9120667b1
  1. 2
      designer_base/src/com/fr/aspectj/designerbase/AlphaFineReminder.aj
  2. 5
      designer_base/src/com/fr/aspectj/designerbase/TemplateProcessTracker.aj

2
designer_base/src/com/fr/aspectj/designerbase/AlphaFineReminder.aj

@ -15,7 +15,7 @@ public aspect AlphaFineReminder {
return;
}
if (e != null && e.getSource().getClass().getName().equals("com.fr.design.gui.imenu.UIMenuItem") && point.contains("com.fr.design.actions")) {
System.out.print("在点击菜单\n" + thisJoinPoint);
//System.out.print(thisJoinPoint + "\n");
}

5
designer_base/src/com/fr/aspectj/designerbase/TemplateProcessTracker.aj

@ -38,12 +38,9 @@ public aspect TemplateProcessTracker {
before(ActionEvent e) : onActionPerformed(e) {
SourceLocation sl = thisJoinPoint.getSourceLocation();
// !within(LogHandlerBar) 没用, 手动过滤
if (e != null && e.getSource().toString().contains("javax.swing.Timer")) {
if (e.getSource().toString().contains("javax.swing.Timer")) {
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 = "";

Loading…
Cancel
Save