Search in sources :

Example 1 with EnsureHeightEvent

use of org.rstudio.core.client.events.EnsureHeightEvent in project rstudio by rstudio.

the class SourceShim method onEnsureVisibleSourceWindow.

@Override
public void onEnsureVisibleSourceWindow(EnsureVisibleSourceWindowEvent e) {
    if (source_.getView().getTabCount() > 0) {
        fireEvent(new EnsureVisibleEvent());
        fireEvent(new EnsureHeightEvent(EnsureHeightEvent.NORMAL));
    }
}
Also used : EnsureHeightEvent(org.rstudio.core.client.events.EnsureHeightEvent) EnsureVisibleEvent(org.rstudio.core.client.events.EnsureVisibleEvent)

Example 2 with EnsureHeightEvent

use of org.rstudio.core.client.events.EnsureHeightEvent in project rstudio by rstudio.

the class SourceShim method onMaximizeSourceWindow.

@Override
public void onMaximizeSourceWindow(MaximizeSourceWindowEvent e) {
    fireEvent(new EnsureVisibleEvent());
    fireEvent(new EnsureHeightEvent(EnsureHeightEvent.MAXIMIZED));
}
Also used : EnsureHeightEvent(org.rstudio.core.client.events.EnsureHeightEvent) EnsureVisibleEvent(org.rstudio.core.client.events.EnsureVisibleEvent)

Aggregations

EnsureHeightEvent (org.rstudio.core.client.events.EnsureHeightEvent)2 EnsureVisibleEvent (org.rstudio.core.client.events.EnsureVisibleEvent)2