コード例 #1
0
 public NativeTestContainer(
     FrameworkFactory frameworkFactory,
     List<ProvisionOption> bundles,
     Map<String, String> properties) {
   m_bundles = bundles;
   m_properties = properties;
   m_frameworkFactory = frameworkFactory;
   String s = m_properties.get("pax-exam.framework.shutdown.timeout");
   m_timeout = s != null ? Long.valueOf(s) : TIMEOUT_IN_MILLIS;
 }
コード例 #2
0
ファイル: ClientController.java プロジェクト: piopawlu/ols
  /**
   * Sets the cursor position of the cursor with the given index.
   *
   * @param aCursorIdx the index of the cursor to set, >= 0 && < 10;
   * @param aLocation the mouse location on screen where the cursor should become, cannot be <code>
   *     null</code>.
   */
  public void setCursorPosition(final int aCursorIdx, final Point aLocation) {
    // Implicitly enable cursor mode, the user already had made its
    // intensions clear that he want to have this by opening up the
    // context menu anyway...
    setCursorMode(true);

    if (this.mainFrame != null) {
      // Convert the mouse-position to a sample index...
      final long sampleIdx = this.mainFrame.convertMousePositionToSampleIndex(aLocation);

      this.dataContainer.setCursorPosition(aCursorIdx, Long.valueOf(sampleIdx));

      fireCursorChangedEvent(aCursorIdx, aLocation.x);
    }

    updateActions();
  }