📄 showeventcauseaction.java
字号:
package org.drools.ide.debug.actions;
import org.drools.ide.DroolsIDEPlugin;
import org.drools.ide.debug.AuditView;
import org.drools.ide.debug.AuditView.Event;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IAction;
/**
* Action to show the cause event of an audit event.
*
* @author <a href="mailto:kris_verlaenen@hotmail.com">kris verlaenen </a>
*/
public class ShowEventCauseAction extends Action {
private AuditView view;
public ShowEventCauseAction(AuditView view) {
super(null, IAction.AS_PUSH_BUTTON);
this.view = view;
setToolTipText("Show Cause");
setText("Show Cause");
setId(DroolsIDEPlugin.getUniqueIdentifier() + ".ShowEventCause");
}
public void run() {
Event event = view.getSelectedEvent();
if (event != null) {
Event cause = event.getCauseEvent();
if (cause != null) {
view.showEvent(cause);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -