Пример #1
0
 private void maybeNavigateToDocument(PathUtil documentPath, int lineNumber) {
   if (documentPath.equals(this.path)) {
     editor.getFocusManager().focus();
     editor.scrollTo(lineNumber, 0);
   } else {
     currentPlace.fireChildPlaceNavigation(
         FileSelectedPlace.PLACE.createNavigationEvent(documentPath, lineNumber));
   }
 }
Пример #2
0
  public static DebuggingModelController create(
      Place currentPlace,
      AppContext appContext,
      DebuggingModel debuggingModel,
      Editor editor,
      EditorPopupController editorPopupController,
      DocumentManager documentManager) {
    DebuggingModelController dmc =
        new DebuggingModelController(
            currentPlace,
            appContext,
            debuggingModel,
            editor,
            editorPopupController,
            documentManager);
    dmc.populateDebuggingSidebar();

    // Register the DebuggingModelController as a handler for clicks on the
    // Header's run button.
    currentPlace.registerSimpleEventHandler(RunApplicationEvent.TYPE, dmc.runApplicationHandler);
    return dmc;
  }
Пример #3
0
 private void showSidebar() {
   sidebarDiscovered = true;
   currentPlace.fireEvent(new RightSidebarExpansionEvent(true));
 }