Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 1692 Details for
Bug 18761
Should support creating anonymous FTP connections
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
This allows the user to autofill the username/pwd field for anon logins
18761.patch (text/plain), 5.13 KB, created by
Antonio D'souza
on 2002-07-12 09:08:03 EDT
(
hide
)
Description:
This allows the user to autofill the username/pwd field for anon logins
Filename:
MIME Type:
Creator:
Antonio D'souza
Created:
2002-07-12 09:08:03 EDT
Size:
5.13 KB
patch
obsolete
>Index: src/org/eclipse/team/internal/ftp/messages.properties >=================================================================== >RCS file: /home/eclipse/org.eclipse.team.ftp/src/org/eclipse/team/internal/ftp/messages.properties,v >retrieving revision 1.10 >diff -u -r1.10 messages.properties >--- src/org/eclipse/team/internal/ftp/messages.properties 14 Jun 2002 15:27:24 -0000 1.10 >+++ src/org/eclipse/team/internal/ftp/messages.properties 12 Jul 2002 13:07:17 -0000 >@@ -48,6 +48,10 @@ > FTPWizardMainPage.passive=Use Passive Mode > FTPWizardMainPage.invalidTimeout=Please specify a timeout value that is greater than 0. > FTPWizardMainPage.usernameMustBeSpecified=Please specify a user name. >+FTPWizardMainPage.anon=Login anonymously >+FTPWizardMainPage.loginDetails=Specify a username and password >+FTPWizardMainPage.anonuser=anonymous >+FTPWizardMainPage.pwd=nobody@nowhere.net > > FTPMainPage.name=FTP > FTPMainPage.description=Create a connection to an FTP site >Index: src/org/eclipse/team/internal/ftp/ui/FTPMainPage.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.team.ftp/src/org/eclipse/team/internal/ftp/ui/FTPMainPage.java,v >retrieving revision 1.10 >diff -u -r1.10 FTPMainPage.java >--- src/org/eclipse/team/internal/ftp/ui/FTPMainPage.java 10 Jul 2002 20:23:23 -0000 1.10 >+++ src/org/eclipse/team/internal/ftp/ui/FTPMainPage.java 12 Jul 2002 13:07:17 -0000 >@@ -10,9 +10,9 @@ > ******************************************************************************/ > package org.eclipse.team.internal.ftp.ui; > >-import java.util.Properties; > import java.net.MalformedURLException; > import java.net.URL; >+import java.util.Properties; > > import org.eclipse.core.runtime.IProgressMonitor; > import org.eclipse.jface.dialogs.IDialogSettings; >@@ -20,10 +20,12 @@ > import org.eclipse.swt.SWT; > import org.eclipse.swt.layout.FillLayout; > import org.eclipse.swt.layout.GridData; >+import org.eclipse.swt.layout.GridLayout; > import org.eclipse.swt.widgets.Button; > import org.eclipse.swt.widgets.Combo; > import org.eclipse.swt.widgets.Composite; > import org.eclipse.swt.widgets.Event; >+import org.eclipse.swt.widgets.Group; > import org.eclipse.swt.widgets.Listener; > import org.eclipse.swt.widgets.Text; > import org.eclipse.team.internal.core.target.Site; >@@ -45,6 +47,7 @@ > //private Combo proxyCombo; > private Combo timeoutCombo; > private Button passiveButton; >+ Group loginDetailsTabGroup; > > // Dialog store id constants > private static final String STORE_USERNAME_ID = >@@ -89,20 +92,52 @@ > hostnameUrlCombo = createEditableCombo(composite); > hostnameUrlCombo.addListener(SWT.Modify, new Listener() { > public void handleEvent(Event e) { >- FTPMainPage.this.validateFields(); >+ FTPMainPage.this.validateFields(); > } > }); >+ >+ Button useAnon=new Button(composite,SWT.RADIO); >+ GridData data=new GridData(GridData.GRAB_HORIZONTAL); >+ data.horizontalSpan = 2; >+ useAnon.setLayoutData(data); >+ useAnon.setText(Policy.bind("FTPWizardMainPage.anon")); >+ useAnon.addListener(SWT.Selection, new Listener() { >+ public void handleEvent(Event event) { >+ loginDetailsTabGroup.setEnabled(false); >+ usernameCombo.setText(Policy.bind("FTPWizardMainPage.anonuser")); >+ password.setText(Policy.bind("FTPWizardMainPage.pwd")); >+ } >+ }); >+ Button useLoginDetails=new Button(composite,SWT.RADIO); >+ data=new GridData(GridData.GRAB_HORIZONTAL); >+ data.horizontalSpan = 2; >+ useLoginDetails.setLayoutData(data); >+ useLoginDetails.setText(Policy.bind("FTPWizardMainPage.loginDetails")); >+ useLoginDetails.setSelection(true); >+ useLoginDetails.addListener(SWT.Selection, new Listener() { >+ public void handleEvent(Event event) { >+ usernameCombo.setText(Policy.bind("")); >+ password.setText(Policy.bind("")); >+ loginDetailsTabGroup.setEnabled(true); >+ } >+ }); >+ >+ loginDetailsTabGroup = new Group(composite, SWT.NONE); >+ GridData loginDetails = new GridData(GridData.FILL_HORIZONTAL); >+ loginDetails.horizontalSpan = 2; >+ loginDetailsTabGroup.setLayoutData(loginDetails); >+ loginDetailsTabGroup.setLayout(new GridLayout(2,false)); > >- createLabel(composite, Policy.bind("FTPWizardMainPage.userName")); //$NON-NLS-1$ >- usernameCombo = createEditableCombo(composite); >+ createLabel(loginDetailsTabGroup, Policy.bind("FTPWizardMainPage.userName")); //$NON-NLS-1$ >+ usernameCombo = createEditableCombo(loginDetailsTabGroup); > usernameCombo.addListener(SWT.Modify, new Listener() { > public void handleEvent(Event e) { > FTPMainPage.this.validateFields(); > } > }); > >- createLabel(composite, Policy.bind("FTPWizardMainPage.password")); //$NON-NLS-1$ >- password = createTextField(composite); >+ createLabel(loginDetailsTabGroup, Policy.bind("FTPWizardMainPage.password")); //$NON-NLS-1$ >+ password = createTextField(loginDetailsTabGroup); > password.setEchoChar('*'); > > // createLabel(composite, Policy.bind("FTPWizardMainPage.proxy")); //$NON-NLS-1$ >@@ -122,7 +157,7 @@ > }); > > Composite passiveButtonTabGroup = new Composite(composite, SWT.NONE); >- GridData data = new GridData(); >+ data = new GridData(); > data.horizontalSpan = 2; > passiveButtonTabGroup.setLayoutData(data); > passiveButtonTabGroup.setLayout(new FillLayout());
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 18761
: 1692