List of usage examples for org.eclipse.jface.dialogs IMessageProvider NONE
int NONE
To view the source code for org.eclipse.jface.dialogs IMessageProvider NONE.
Click Source Link
From source file:org.universaal.tools.configurationEditor.dialogs.SPARQLConfigItemDialog.java
License:Apache License
public void create() { super.create(); // Set the title setTitle("Add SPARQLConfigItem"); // Set the message setMessage("Add a SPARQLConfigItem to the selected category", IMessageProvider.NONE); }
From source file:org.universaal.tools.configurationEditor.dialogs.ValidatorDialog.java
License:Apache License
@Override public void create() { super.create(); // Set the title setTitle("Add validator"); // Set the message setMessage("Add a validator to the selected config item", IMessageProvider.NONE); attributes = new LinkedList<String>(); }
From source file:org.webcat.oda.designer.impl.ColumnMappingPage.java
License:Open Source License
private boolean isUniqueName(String columnName, ColumnMappingElement element) { boolean success = true; if (columnMap != null) { if (columnMap.get(columnName) != element && columnMap.get(columnName) != null) { String msg = MessageFormat.format(Messages.DATASET_COLUMN_NAME_IN_USE, columnName); setMessage(msg, IMessageProvider.ERROR); success = false;// w ww . j a va2 s . com } else { setMessage(DEFAULT_MESSAGE, IMessageProvider.NONE); } } else { setMessage(DEFAULT_MESSAGE, IMessageProvider.NONE); columnMap = new HashMap<String, ColumnMappingElement>(); columnMappingList = new ArrayList<ColumnMappingElement>(); } return success; }
From source file:org.xmind.ui.internal.dialogs.HyperlinkDialog.java
License:Open Source License
public void updateMessage() { if (currentPage == null) { return;/* w w w . j a v a 2 s .com*/ } pageMessage = currentPage.getMessage(); if (pageMessage != null) { pageMessageType = currentPage.getMessageType(); } else { pageMessageType = IMessageProvider.NONE; } if (pageMessage == null) { setMessage(pageDescription); } else { setMessage(pageMessage, pageMessageType); } setErrorMessage(currentPage.getErrorMessage()); }
From source file:org.zend.php.server.internal.ui.apache.LocalApacheCompositeFragment.java
License:Open Source License
public void validate() { if (name != null) { if (name.trim().isEmpty()) { setIncompleteMessage(Messages.LocalApacheCompositeFragment_NameEmptyMessage); return; }//from ww w . java 2s . c o m if (isDuplicateName(name)) { setMessage(Messages.LocalApacheCompositeFragment_NameConflictMessage, IMessageProvider.ERROR); return; } } if (location != null && !location.isEmpty()) { Server server = new Server(); server.setAttribute(LocalApacheType.LOCATION, location); if (LocalApacheType.parseAttributes(server)) { Server conflictingServer = getConflictingServer(server); if (conflictingServer != null) { setMessage(MessageFormat.format(Messages.LocalApacheCompositeFragment_BaseUrlConflictError, conflictingServer.getName()), IMessageProvider.ERROR); return; } } else { setMessage(Messages.LocalApacheCompositeFragment_LocationInvalidMessage, IMessageProvider.ERROR); return; } } else { setIncompleteMessage("Specify an installation directory."); return; } setMessage(getDescription(), IMessageProvider.NONE); }
From source file:org.zend.php.server.ui.fragments.AbstractCompositeFragment.java
License:Open Source License
public void setIncompleteMessage(final String message) { Display.getDefault().syncExec(new Runnable() { public void run() { controlHandler.setMessage(message, IMessageProvider.NONE); setComplete(false);//from w ww.j ava 2 s. c o m controlHandler.update(); } }); }
From source file:org.zend.php.zendserver.deployment.ui.openshift.OpenShiftCompositeFragment.java
License:Open Source License
@Override public void validate() { if (usernameText != null && usernameText.getText().trim().isEmpty()) { setMessage(Messages.OpenShiftCompositeFragment_EmptyUsernameError, IMessageProvider.ERROR); return;//from w w w . jav a 2 s. c o m } if (passwordText != null && passwordText.getText().trim().isEmpty()) { setMessage(Messages.OpenShiftCompositeFragment_EmptyPasswordError, IMessageProvider.ERROR); return; } if (privateKeyText != null && privateKeyText.getText().trim().isEmpty()) { setMessage(Messages.OpenShiftCompositeFragment_EmptyKeyError, IMessageProvider.ERROR); return; } File keyFile = new File(privateKey); if (!keyFile.exists()) { setMessage(Messages.OpenShiftCompositeFragment_NotExistKeyError, IMessageProvider.ERROR); return; } JSCHPubKeyDecryptor decryptor = new JSCHPubKeyDecryptor(); try { decryptor.isValidPrivateKey(privateKey); } catch (PublicKeyNotFoundException e) { setMessage(Messages.OpenShiftCompositeFragment_InvalidKeyError, IMessageProvider.ERROR); return; } setMessage(getDescription(), IMessageProvider.NONE); }
From source file:org.zend.php.zendserver.deployment.ui.servers.DeploymentCompositeFragment.java
License:Open Source License
@Override public void validate() { if (enableButton.getSelection()) { if (host != null && host.trim().isEmpty()) { setMessage(Messages.DeploymentCompositeFragment_EmptyHostMessage, IMessageProvider.ERROR); return; }// ww w .j av a 2 s . c o m if (key != null && key.trim().isEmpty()) { setMessage(Messages.DeploymentCompositeFragment_EmptyKeyMessage, IMessageProvider.ERROR); return; } if (secret != null && secret.trim().isEmpty()) { setMessage(Messages.DeploymentCompositeFragment_EmptySecretMessage, IMessageProvider.ERROR); return; } } setMessage(getDescription(), IMessageProvider.NONE); }
From source file:org.zend.php.zendserver.deployment.ui.tunneling.TunnelingCompositeFragment.java
License:Open Source License
public void validate() { if (config.isEnabled()) { String username = config.getUsername(); if (username == null || username.isEmpty()) { setMessage(Messages.TunnelingCompositeFragment_EmptyUsernameError, IMessageProvider.ERROR); return; }// www . ja v a 2 s .c o m String password = config.getPassword(); if (password == null || password.isEmpty()) { String privateKey = privateKeyText.getText(); if (privateKey.isEmpty()) { setMessage(Messages.TunnelingCompositeFragment_NoPathNorPasswordError, IMessageProvider.ERROR); return; } } List<PortForwarding> portForwardings = config.getPortForwardings(); if (portForwardings == null || portForwardings.isEmpty()) { setMessage(Messages.TunnelingCompositeFragment_NoForwardingError, IMessageProvider.ERROR); return; } String httpProxyPort = config.getHttpProxyPort(); if (httpProxyPort != null && !httpProxyPort.isEmpty()) { try { Integer.valueOf(httpProxyPort); } catch (NumberFormatException e) { setMessage(Messages.TunnelingCompositeFragment_InvalidProxyPortError, IMessageProvider.ERROR); return; } } } setMessage(getDescription(), IMessageProvider.NONE); }