コード例 #1
0
ファイル: S4GXHSelectHandler.java プロジェクト: NieJia/PLM
  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
ファイル: DDItemCreateHandler.java プロジェクト: NieJia/PLM
 public Object execute(ExecutionEvent arg0) throws ExecutionException {
   AbstractAIFUIApplication application = AIFUtility.getCurrentApplication();
   DDItemCreateAction action = new DDItemCreateAction(application, null);
   new Thread(action).start();
   return null;
 }