*/
private void setReadingPaneState() {
Preferences preferences = GWTSessionManager.get().getPreferences();
RegionPosition readingPanePos = null;
if ( preferences.getReadingPane() == Preferences.READING_PANE_RIGHT ) {
readingPanePos = RegionPosition.EAST;
} else {
readingPanePos = RegionPosition.SOUTH;
}
this.readingPaneLayoutData = new BorderLayoutData( readingPanePos );
this.readingPaneLayoutData.setSplit( true );
this.readingPanePanel = PanelRegistry.MESSAGE_READING_PANE_PREVIEW.get();
if ( readingPanePos.equals( RegionPosition.SOUTH ) ) {
this.readingPanePanel.setHeight( (Window.getClientHeight() - 80) / 2 );
} else {
this.readingPanePanel.setWidth( 400 );
}
add( this.readingPanePanel, this.readingPaneLayoutData );