예제 #1
0
  public Object execute(ExecutionEvent arg0) throws ExecutionException {
    app = AIFUtility.getCurrentApplication();

    InterfaceAIFComponent[] targets = app.getTargetComponents();
    if (targets.length > 0) {
      S4GXHSelectAction s4GXHSelectAction = new S4GXHSelectAction(app, targets, null);
      new Thread(s4GXHSelectAction).start();
    } else {
      MessageBox.post("请右键点击要添加工序号的bomline!", "提示", MessageBox.WARNING);
      return null;
    }

    return null;
  }
예제 #2
0
 public Object execute(ExecutionEvent arg0) throws ExecutionException {
   AbstractAIFUIApplication application = AIFUtility.getCurrentApplication();
   DDItemCreateAction action = new DDItemCreateAction(application, null);
   new Thread(action).start();
   return null;
 }