Code with Finding: |
class PasswordAttributeEditor {
/**
* Initialize the editor
* @param w the ResourceWrapper father of the attribute
* @param a the Attribute we are editing
* @param o the value of the above attribute
* @param p some Properties, used to fine-tune the editor
* @exception RemoteAccessException if a remote access error occurs.
*/
public void initialize(RemoteResourceWrapper w, Attribute a, Object o,
Properties p)
throws RemoteAccessException
{
RemoteResource r = w.getResource();
name = (String) r.getValue("identifier");
if(o == null) {
String v = null;
v = (String) r.getValue(a.getName());
if(v == null)
if(a.getDefault() != null)
v = a.getDefault().toString();
if ( v != null ) {
origs = v;
}
} else {
origs = o.toString();
}
current = origs;
setLabel(origs);
widget.addActionListener(new PasswordEditorListener());
}
}
|