Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsuen2007-03-10 20:37:07 +0000
committerrsuen2007-03-10 20:37:07 +0000
commit6d1b9f106c3dc4de596e70109102126384e0837f (patch)
tree6e99f5389f47467568e8cd66ec0f744e917f4a21 /providers/bundles/org.eclipse.ecf.provider.bittorrent.ui
parent1a0cc8f5d64d28f88d5eb98ae9effd0b3e5bd9fb (diff)
downloadorg.eclipse.ecf-6d1b9f106c3dc4de596e70109102126384e0837f.tar.gz
org.eclipse.ecf-6d1b9f106c3dc4de596e70109102126384e0837f.tar.xz
org.eclipse.ecf-6d1b9f106c3dc4de596e70109102126384e0837f.zip
Check that a destination has been set.
Diffstat (limited to 'providers/bundles/org.eclipse.ecf.provider.bittorrent.ui')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.bittorrent.ui/src/org/eclipse/ecf/internal/provider/bittorrent/ui/BitTorrentConnectWizardPage.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.bittorrent.ui/src/org/eclipse/ecf/internal/provider/bittorrent/ui/BitTorrentConnectWizardPage.java b/providers/bundles/org.eclipse.ecf.provider.bittorrent.ui/src/org/eclipse/ecf/internal/provider/bittorrent/ui/BitTorrentConnectWizardPage.java
index 130d479db..af6997070 100644
--- a/providers/bundles/org.eclipse.ecf.provider.bittorrent.ui/src/org/eclipse/ecf/internal/provider/bittorrent/ui/BitTorrentConnectWizardPage.java
+++ b/providers/bundles/org.eclipse.ecf.provider.bittorrent.ui/src/org/eclipse/ecf/internal/provider/bittorrent/ui/BitTorrentConnectWizardPage.java
@@ -60,6 +60,17 @@ final class BitTorrentConnectWizardPage extends WizardPage {
}
}
});
+
+ targetText.addModifyListener(new ModifyListener() {
+ public void modifyText(ModifyEvent e) {
+ String target = torrentText.getText().trim();
+ if (target.equals("")) { //$NON-NLS-1$
+ setErrorMessage("A destination must be set.");
+ } else {
+ setErrorMessage(null);
+ }
+ }
+ });
browseTorrentBtn.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {

Back to the top