Revision 41058237
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/RemotingLoginDialog.java | ||
---|---|---|
17 | 17 |
import java.util.Map; |
18 | 18 |
|
19 | 19 |
import org.apache.commons.lang.StringUtils; |
20 |
import org.apache.log4j.Logger; |
|
20 | 21 |
import org.eclipse.core.runtime.IProgressMonitor; |
21 | 22 |
import org.eclipse.core.runtime.IStatus; |
22 | 23 |
import org.eclipse.core.runtime.Status; |
... | ... | |
85 | 86 |
*/ |
86 | 87 |
public class RemotingLoginDialog extends Dialog implements ICDMServerError { |
87 | 88 |
|
88 |
/** |
|
89 |
* |
|
90 |
*/ |
|
89 |
private Logger logger = Logger.getLogger(getClass()); |
|
90 |
|
|
91 | 91 |
private static final String DEFAULT_PASS = "00000"; //$NON-NLS-1$ |
92 |
/** |
|
93 |
* |
|
94 |
*/ |
|
95 | 92 |
private static final String DEFAULT_USER = "admin"; //$NON-NLS-1$ |
96 | 93 |
private static final String UBUNTU = "Ubuntu"; //$NON-NLS-1$ |
97 | 94 |
protected Object result; |
... | ... | |
603 | 600 |
disableCdmInstanceControls("", ""); //$NON-NLS-1$ //$NON-NLS-2$ |
604 | 601 |
} |
605 | 602 |
} catch (CDMServerException | IOException e) { |
606 |
MessagingUtils.errorDialog(Messages.RemotingLoginDialog_CONNECTION_FAILED_TITLE, this,
|
|
607 |
Messages.RemotingLoginDialog_CONNECTION_FAILED_MESSAGE,
|
|
608 |
TaxeditorStorePlugin.PLUGIN_ID, e, true, true);
|
|
603 |
MessagingUtils.warningDialog(Messages.RemotingLoginDialog_CONNECTION_FAILED_TITLE, this,
|
|
604 |
Messages.RemotingLoginDialog_CONNECTION_FAILED_MESSAGE);
|
|
605 |
logger.warn(Messages.RemotingLoginDialog_CONNECTION_FAILED_TITLE, e);
|
|
609 | 606 |
} |
610 | 607 |
} |
611 | 608 |
updatePort(); |
Also available in: Unified diff
ref #7844 Enhance error message when connection times out