forked from fanruan/design
Browse Source
* commit 'f9120667b1f8262b0e461b19deeb131001b64962': bug fix rt bug fix AOP实现提醒功能master
superman
8 years ago
7 changed files with 38 additions and 15 deletions
@ -0,0 +1,23 @@
|
||||
package com.fr.aspectj.designerbase; |
||||
|
||||
import java.awt.event.ActionEvent; |
||||
|
||||
/** |
||||
* Created by XiaXiang on 2017/5/25. |
||||
*/ |
||||
public aspect AlphaFineReminder { |
||||
pointcut onActionPerformed(ActionEvent e) : |
||||
execution(* actionPerformed(ActionEvent)) && args(e); |
||||
|
||||
before(ActionEvent e) : onActionPerformed(e) { |
||||
String point = thisJoinPoint.toString(); |
||||
if (e != null && e.getSource().toString().contains("javax.swing.Timer")) { |
||||
return; |
||||
} |
||||
if (e != null && e.getSource().getClass().getName().equals("com.fr.design.gui.imenu.UIMenuItem") && point.contains("com.fr.design.actions")) { |
||||
//System.out.print(thisJoinPoint + "\n"); |
||||
} |
||||
|
||||
|
||||
} |
||||
} |
Loading…
Reference in new issue