Package org.rstudio.studio.client.common.debugging.model

Examples of org.rstudio.studio.client.common.debugging.model.BreakpointState


          @Override
          protected void onInit(JsObject value)
          {
             if (value != null)
             {         
                BreakpointState state = value.cast();

                // restore all of the breakpoints
                JsArray<Breakpoint> breakpoints =
                      state.getPersistedBreakpoints();
                for (int idx = 0; idx < breakpoints.length(); idx++)
                {
                   Breakpoint breakpoint = breakpoints.get(idx);
                  
                   // make sure the next breakpoint we create after a restore
                   // has a value larger than any existing breakpoint
                   currentBreakpointId_ = Math.max(
                         currentBreakpointId_,
                         breakpoint.getBreakpointId() + 1);
                  
                   addBreakpoint(breakpoint);
                }
               
                // this initialization happens after the source windows are
                // up, so fire an event to the editor to show all known
                // breakpoints. as new source windows are opened, they will
                // call getBreakpointsInFile to populate themselves.
                events_.fireEvent(
                      new BreakpointsSavedEvent(breakpoints_, true));
             }
          }
  
          @Override
          protected JsObject getValue()
          {
             BreakpointState state =
                   BreakpointState.create();
             for (Breakpoint breakpoint: breakpoints_)
             {
                state.addPersistedBreakpoint(breakpoint);
             }
             breakpointStateDirty_ = false;
             return state.cast();
          }
  
          @Override
          protected boolean hasChanged()
          {
View Full Code Here

TOP

Related Classes of org.rstudio.studio.client.common.debugging.model.BreakpointState

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.