Skip to Content.
Sympa Menu

notify-dpml - svn commit: r2722 - development/main/depot/prefs/src/main/net/dpml/depot/prefs

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell AT dpml.net
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r2722 - development/main/depot/prefs/src/main/net/dpml/depot/prefs
  • Date: Sun, 05 Jun 2005 16:04:31 -0400

Author: mcconnell AT dpml.net
Date: Sun Jun 5 16:04:31 2005
New Revision: 2722

Modified:

development/main/depot/prefs/src/main/net/dpml/depot/prefs/ClassicCredentialsPanel.java

development/main/depot/prefs/src/main/net/dpml/depot/prefs/HostManagerPanel.java
Log:
Improve handling of undo action on host credentials.

Modified:
development/main/depot/prefs/src/main/net/dpml/depot/prefs/ClassicCredentialsPanel.java
==============================================================================
---
development/main/depot/prefs/src/main/net/dpml/depot/prefs/ClassicCredentialsPanel.java
(original)
+++
development/main/depot/prefs/src/main/net/dpml/depot/prefs/ClassicCredentialsPanel.java
Sun Jun 5 16:04:31 2005
@@ -68,6 +68,7 @@
private JButton m_ok;
private JButton m_revert;
private PropertyChangeSupport m_propertyChangeSupport;
+ private PasswordAuthentication m_authentication;
private PasswordAuthentication m_auth;
private PasswordAuthenticationListener m_listener;
private boolean m_modified = false;
@@ -86,6 +87,7 @@
PasswordAuthenticationListener listener ) throws Exception
{
m_parent = parent;
+ m_authentication = auth;
m_auth = auth;
m_listener = listener;

@@ -163,7 +165,7 @@
}
else
{
- return m_auth.getUserName();
+ return m_authentication.getUserName();
}
}

@@ -175,7 +177,7 @@
}
else
{
- return new String( m_auth.getPassword() );
+ return new String( m_authentication.getPassword() );
}
}

@@ -308,7 +310,7 @@
PropertyChangeEvent usernameEvent =
new PropertyChangeEvent( this, "username", old, username );
m_propertyChangeSupport.firePropertyChange( usernameEvent );
-
+ m_auth = m_authentication;
String password = new String( getPasswordValue() );
m_password.setText( password );
PropertyChangeEvent passwordEvent =

Modified:
development/main/depot/prefs/src/main/net/dpml/depot/prefs/HostManagerPanel.java
==============================================================================
---
development/main/depot/prefs/src/main/net/dpml/depot/prefs/HostManagerPanel.java
(original)
+++
development/main/depot/prefs/src/main/net/dpml/depot/prefs/HostManagerPanel.java
Sun Jun 5 16:04:31 2005
@@ -363,6 +363,20 @@
}
}
{
+ PasswordAuthentication auth = m_manager.getAuthentication();
+ if( null == m_auth )
+ {
+ if( null != auth )
+ {
+ flag = true;
+ }
+ }
+ else if( false == m_auth.equals( auth ) )
+ {
+ flag = true;
+ }
+ }
+ {
LayoutModel layout = (LayoutModel) m_strategy.getSelectedItem();
if( null != layout )
{
@@ -585,6 +599,10 @@
public void passwordAuthenticationChanged(
PasswordAuthenticationEvent event )
{
m_auth = event.getPasswordAuthentication();
+ PropertyChangeEvent e =
+ new PropertyChangeEvent(
+ this, "auth", m_manager.getAuthentication(), m_auth );
+ m_propertyChangeSupport.firePropertyChange( e );
}
}

@@ -616,6 +634,7 @@
m_trusted.setSelected( m_manager.getTrusted() );
m_strategy.setSelectedItem( m_manager.getLayoutModel() );
m_base.setText( getBasePath() );
+ m_auth = m_manager.getAuthentication();
PropertyChangeEvent e =
new PropertyChangeEvent(
this, "revert", null, null );



  • svn commit: r2722 - development/main/depot/prefs/src/main/net/dpml/depot/prefs, mcconnell, 06/05/2005

Archive powered by MHonArc 2.6.24.

Top of Page