コード例 #1
0
ファイル: SootLauncher.java プロジェクト: safdariqbal/soot
 private void newProcessStarting() {
   SootOutputEvent clear_event =
       new SootOutputEvent(this, ISootOutputEventConstants.SOOT_CLEAR_EVENT);
   SootPlugin.getDefault().fireSootOutputEvent(clear_event);
   SootOutputEvent se = new SootOutputEvent(this, ISootOutputEventConstants.SOOT_NEW_TEXT_EVENT);
   se.setTextToAppend("Starting ...");
   SootPlugin.getDefault().fireSootOutputEvent(se);
 }
コード例 #2
0
ファイル: SootLauncher.java プロジェクト: safdariqbal/soot
  private void sendSootOutputEvent(String toSend) {
    SootOutputEvent send = new SootOutputEvent(this, ISootOutputEventConstants.SOOT_NEW_TEXT_EVENT);
    send.setTextToAppend(toSend);
    final SootOutputEvent sendFinal = send;

    Display.getCurrent()
        .asyncExec(
            new Runnable() {
              public void run() {
                SootPlugin.getDefault().fireSootOutputEvent(sendFinal);
              };
            });
  }