diff options
Diffstat (limited to 'providers/bundles/org.eclipse.ecf.provider.bittorrent.ui/src/org/eclipse/ecf/internal/provider/bittorrent/ui/BitTorrentConnectWizardPage.java')
-rw-r--r-- | providers/bundles/org.eclipse.ecf.provider.bittorrent.ui/src/org/eclipse/ecf/internal/provider/bittorrent/ui/BitTorrentConnectWizardPage.java | 11 |
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) { |