コード例 #1
0
  /** Invokes all plugins on the plugin menu. */
  public void testPluginWorkspace() {
    logger_.info("Running testPluginWorkspace...");

    JMenuBarOperator mbo = new JMenuBarOperator(window_);

    // Push menu so menu items are accessible
    mbo.pushMenu("Plugins");

    JPopupMenuOperator pmo = new JPopupMenuOperator(window_);

    for (int i = 0; i < pmo.getComponentCount(); i++) {
      mbo.pushMenu("Plugins");
      new JCheckBoxMenuItemOperator(window_, i).push();
    }
  }
コード例 #2
0
  public ComponentOperator open() {
    log(":: open");
    JPopupMenuOperator popup = this.openNode.callPopup();
    if (popup == null) {
      throw new Error("Cannot get context menu for node ");
    }
    log("   -- after popup invocation --");
    popup.getTimeouts().setTimeout("JMenuOperator.PushMenuTimeout", 90000);
    try {
      popup.pushMenu(OPEN);
    } catch (org.netbeans.jemmy.TimeoutExpiredException tee) {
      throw new Error("Cannot push menu item ");
    }

    return MIDletEditorOperator.findMIDletEditorOperator(midletName);
  }
コード例 #3
0
 /**
  * Performs popup menu on specified row and no block further execution.
  *
  * @param row row number to be selected (starts from 0)
  * @param popupPath popup menu path
  */
 public void performPopupNoBlock(int row, String popupPath) {
   table().selectCell(row, 0);
   JPopupMenuOperator popup = new JPopupMenuOperator(table().callPopupOnCell(row, 0));
   popup.pushMenuNoBlock(popupPath);
 }