Package org.rstudio.studio.client.workbench.views.presentation.model

Examples of org.rstudio.studio.client.workbench.views.presentation.model.PresentationState


    
      eventBus.addHandler(SessionInitEvent.TYPE, new SessionInitHandler() {
       
         public void onSessionInit(SessionInitEvent sie)
         {
            PresentationState state =
                              session_.getSessionInfo().getPresentationState();
            if (state.isActive())
               shim.initialize(state);   
           
            if (state.isTutorial())
            {
               commands.clearPresentationCache().remove();
               commands.presentationViewInBrowser().remove();
               commands.presentationSaveAsStandalone().remove();
               commands.presentationPublishToRpubs().remove();
View Full Code Here


               "R Presentations require the knitr package " +
               "(version 1.2 or higher)");
         return;
      }
     
      PresentationState state = sessionInfo.getPresentationState();
     
      // if we are showing a tutorial then don't allow preview
      if (state.isTutorial())
      {
         globalDisplay_.showMessage(
               MessageDisplay.MSG_WARNING,
               "Unable to Preview",
               "R Presentations cannot be previewed when a Tutorial " +
               "is active");
         return;
      }
     
      // if this presentation is already showing then just activate
      if (state.isActive() &&
          state.getFilePath().equals(docUpdateSentinel_.getPath()))
      {
         commands_.activatePresentation().execute();
         save();
      }
      // otherwise reload
View Full Code Here

      return this.has_pkg_vig;
   }-*/;
  
   public final String getPresentationName()
   {
      PresentationState state = getPresentationState();
      if (state != null)
         return state.getPaneCaption();
      else
         return "Presentation";
   }
View Full Code Here

            String pane = event.getData();
            eventBus_.fireEvent(new ActivatePaneEvent(pane));
         }
         else if (type.equals(ClientEvent.ShowPresentationPane))
         {
            PresentationState state = event.getData();
            eventBus_.fireEvent(new ShowPresentationPaneEvent(state));
         }
         else if (type.equals(ClientEvent.EnvironmentRefresh))
         {
            eventBus_.fireEvent(new EnvironmentRefreshEvent());
View Full Code Here

TOP

Related Classes of org.rstudio.studio.client.workbench.views.presentation.model.PresentationState

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.