Search in sources :

Example 26 with Handler

use of org.rstudio.core.client.command.Handler in project rstudio by rstudio.

the class WorkbenchScreen method onActivateHelp.

@Handler
void onActivateHelp() {
    paneManager_.activateTab(Tab.Help);
    fireEventDelayed(new ActivateHelpEvent(), 200);
}
Also used : ActivateHelpEvent(org.rstudio.studio.client.workbench.views.help.events.ActivateHelpEvent) LastSourceDocClosedHandler(org.rstudio.studio.client.workbench.views.source.events.LastSourceDocClosedHandler) ChangeFontSizeHandler(org.rstudio.studio.client.application.events.ChangeFontSizeHandler) SelectionHandler(com.google.gwt.event.logical.shared.SelectionHandler) ResizeHandler(com.google.gwt.event.logical.shared.ResizeHandler) Handler(org.rstudio.core.client.command.Handler)

Example 27 with Handler

use of org.rstudio.core.client.command.Handler in project rstudio by rstudio.

the class Console method onLayoutZoomConsole.

@Handler
public void onLayoutZoomConsole() {
    onActivateConsole();
    events_.fireEvent(new ZoomPaneEvent("Console"));
}
Also used : ZoomPaneEvent(org.rstudio.studio.client.workbench.events.ZoomPaneEvent) BusyHandler(org.rstudio.studio.client.workbench.events.BusyHandler) ConsolePromptHandler(org.rstudio.studio.client.workbench.views.console.events.ConsolePromptHandler) SendToConsoleHandler(org.rstudio.studio.client.workbench.views.console.events.SendToConsoleHandler) Handler(org.rstudio.core.client.command.Handler)

Example 28 with Handler

use of org.rstudio.core.client.command.Handler in project rstudio by rstudio.

the class Application method onLogFocusedElement.

@Handler
public void onLogFocusedElement() {
    Element el = DomUtils.getActiveElement();
    DomUtils.dump(el, "Focused Element: ");
}
Also used : Element(com.google.gwt.dom.client.Element) InputElement(com.google.gwt.dom.client.InputElement) FormElement(com.google.gwt.dom.client.FormElement) BarrierReleasedHandler(org.rstudio.core.client.events.BarrierReleasedHandler) Handler(org.rstudio.core.client.command.Handler) ValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler) CloseHandler(com.google.gwt.event.logical.shared.CloseHandler)

Example 29 with Handler

use of org.rstudio.core.client.command.Handler in project rstudio by rstudio.

the class ApplicationQuit method onRestartR.

@Handler
public void onRestartR() {
    boolean saveChanges = saveAction_.getAction() != SaveAction.NOSAVE;
    eventBus_.fireEvent(new SuspendAndRestartEvent(SuspendOptions.createSaveMinimal(saveChanges), null));
}
Also used : SuspendAndRestartEvent(org.rstudio.studio.client.application.events.SuspendAndRestartEvent) BarrierReleasedHandler(org.rstudio.core.client.events.BarrierReleasedHandler) SuspendAndRestartHandler(org.rstudio.studio.client.application.events.SuspendAndRestartHandler) SaveActionChangedHandler(org.rstudio.studio.client.application.events.SaveActionChangedHandler) Handler(org.rstudio.core.client.command.Handler) HandleUnsavedChangesHandler(org.rstudio.studio.client.application.events.HandleUnsavedChangesHandler)

Example 30 with Handler

use of org.rstudio.core.client.command.Handler in project rstudio by rstudio.

the class DesktopApplicationHeader method onDiagnosticsReport.

@Handler
void onDiagnosticsReport() {
    eventBus_.fireEvent(new SendToConsoleEvent("rstudioDiagnosticsReport()", true));
    new Timer() {

        @Override
        public void run() {
            Desktop.getFrame().showFolder("~/rstudio-diagnostics");
        }
    }.schedule(1000);
}
Also used : Timer(com.google.gwt.user.client.Timer) SendToConsoleEvent(org.rstudio.studio.client.workbench.views.console.events.SendToConsoleEvent) ShowFolderHandler(org.rstudio.studio.client.workbench.views.files.events.ShowFolderHandler) SessionInitHandler(org.rstudio.studio.client.workbench.events.SessionInitHandler) Handler(org.rstudio.core.client.command.Handler)

Aggregations

Handler (org.rstudio.core.client.command.Handler)55 ChangeFontSizeHandler (org.rstudio.studio.client.application.events.ChangeFontSizeHandler)20 EnsureHeightHandler (org.rstudio.core.client.events.EnsureHeightHandler)19 EnsureVisibleHandler (org.rstudio.core.client.events.EnsureVisibleHandler)19 FileChangeHandler (org.rstudio.studio.client.workbench.views.files.events.FileChangeHandler)18 HideMessageHandler (org.rstudio.studio.client.workbench.views.source.editors.text.status.StatusBar.HideMessageHandler)18 RecordNavigationPositionHandler (org.rstudio.studio.client.workbench.views.source.events.RecordNavigationPositionHandler)18 JsArrayString (com.google.gwt.core.client.JsArrayString)12 ProgressIndicator (org.rstudio.core.client.widget.ProgressIndicator)12 ValueChangeHandler (com.google.gwt.event.logical.shared.ValueChangeHandler)11 FileSystemItem (org.rstudio.core.client.files.FileSystemItem)10 VoidServerRequestCallback (org.rstudio.studio.client.server.VoidServerRequestCallback)9 CloseHandler (com.google.gwt.event.logical.shared.CloseHandler)8 SelectionHandler (com.google.gwt.event.logical.shared.SelectionHandler)8 Command (com.google.gwt.user.client.Command)8 ServerError (org.rstudio.studio.client.server.ServerError)7 InputEditorPosition (org.rstudio.studio.client.workbench.views.console.shell.editor.InputEditorPosition)7 NativePreviewHandler (com.google.gwt.user.client.Event.NativePreviewHandler)6 Breakpoint (org.rstudio.studio.client.common.debugging.model.Breakpoint)6 Position (org.rstudio.studio.client.workbench.views.source.editors.text.ace.Position)6