ref #7993: change message size of message part
authorKatja Luther <k.luther@bgbm.org>
Thu, 31 Jan 2019 15:08:06 +0000 (16:08 +0100)
committerKatja Luther <k.luther@bgbm.org>
Thu, 31 Jan 2019 15:08:06 +0000 (16:08 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/CdmStoreConnector.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/RemotingLoginDialog.java

index e40fa85280a6adde7e63e9218ba4befce284a0a2..d972bee756bfd1bb4c8b82ca0b50143d7774a649 100644 (file)
@@ -212,7 +212,8 @@ class CdmStoreConnector extends Job {
                                         NomenclaturalStatusType.initDefaultTerms();
                                     } catch(CdmAuthenticationException cae) {
                                         loginDialog.hide(false);
-                                        loginDialog.setMessage("You are logged in now but you are not permitted to use the TaxEditor with the data source "+ cdmSource.getName());
+                                        loginDialog.setMessage("Your credentials are valid \nbut you are not permitted to use \nthe TaxEditor with the selected data source");
+
                                     }
 
                                 }
index 9b6afed38d5f50495063e9dc0b28db48563c39cb..48e826e1169148daab423e89ac7009c35bce783c 100644 (file)
@@ -149,7 +149,7 @@ public class RemotingLoginDialog extends Dialog implements ICDMServerError {
     private final int MIN_WIDTH = 530;
     private final int MIN_HEIGHT = 220;
     private final int MIN_EXP_HEIGHT = 380;
-    private final int MESSAGE_HEIGHT = 25;
+    private final int MESSAGE_HEIGHT = 75;
     private Label lblEditorVersion;
     private Text txtEditorVersion;
     private Label lblServerCDMVersion;
@@ -1033,10 +1033,10 @@ public class RemotingLoginDialog extends Dialog implements ICDMServerError {
 
     public void setMessage(String message) {
         if(message != null && !message.isEmpty()) {
-            if(message.length() > 50) {
-                styledTxtMessage.setToolTipText(message);
-                message = message.substring(0,50) + "..."; //$NON-NLS-1$
-            }
+//            if(message.length() > 50) {
+//                styledTxtMessage.setToolTipText(message);
+//                message = message.substring(0,50) + "..."; //$NON-NLS-1$
+//            }
             styledTxtMessage.setText(message);
             styledTxtMessage.setVisible(true);
             ((GridData)styledTxtMessage.getLayoutData()).exclude = false;