- styledTxtMessage.setText(""); //$NON-NLS-1$
- styledTxtMessage.setVisible(false);
- ((GridData)styledTxtMessage.getLayoutData()).exclude = true;
- shlConnect.setSize(MIN_WIDTH, getHeightWithoutMessage());
- shlConnect.setMinimumSize(MIN_WIDTH, getHeightWithoutMessage());
+ if (!styledTxtMessage.isDisposed()){
+ styledTxtMessage.setText(""); //$NON-NLS-1$
+ styledTxtMessage.setVisible(false);
+ ((GridData)styledTxtMessage.getLayoutData()).exclude = true;
+ }
+ if(!shlConnect.isDisposed()){
+ shlConnect.setSize(MIN_WIDTH, getHeightWithoutMessage());
+ shlConnect.setMinimumSize(MIN_WIDTH, getHeightWithoutMessage());
+ }
+ }
+ if (!remotingComposite.isDisposed()){
+ remotingComposite.layout();