Package com.intellij.openapi.util

Examples of com.intellij.openapi.util.ActionCallback$Done


                                        @NotNull final JstdServer server,
                                        @NotNull final JstdRunSettings runSettings) {
    if (server.isReadyForRunningTests()) {
      final JstdDebugBrowserInfo debugBrowserInfo = JstdDebugBrowserInfo.build(server, runSettings);
      if (debugBrowserInfo != null) {
        ActionCallback prepareDebuggerCallback = debugBrowserInfo.getDebugEngine().prepareDebugger(project, debugBrowserInfo.getBrowser());
        prepareDebuggerCallback.notifyWhenRejected(result).doWhenDone(new Runnable() {
          @Override
          public void run() {
            result.setDone(new MyDebugStarter(server, debugBrowserInfo));
          }
        });
View Full Code Here


        final Dimension scrollableSize = renderer.computePreferredSize(true);
        bounds.width = scrollableSize.width;
      }
    }

    final ActionCallback callback = new ActionCallback();


    if (!tree.isRowSelected(row)) {
      if (addToSelection) {
        tree.getSelectionModel().addSelectionPath(tree.getPathForRow(row));       
      } else {
        tree.setSelectionRow(row);
      }
    }

    if (bounds != null) {
      final Range<Integer> range = getExpandControlRange(tree, path);
      if (range != null) {
        int delta = bounds.x - range.getFrom().intValue();
        bounds.x -= delta;
        bounds.width -= delta;
      }

      if (visible.width < bounds.width) {
        bounds.width = visible.width;
      }

      final Rectangle b1 = bounds;
      final Runnable runnable = new Runnable() {
        public void run() {
          tree.scrollRectToVisible(b1);
          callback.setDone();
        }
      };

      if (ApplicationManager.getApplication().isUnitTestMode()) {
        runnable.run();       
      } else {
        SwingUtilities.invokeLater(runnable);
      }
    } else {
      callback.setDone();
    }

    return callback;
  }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.util.ActionCallback$Done

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.