public void passwordLocationChangedAction()
{
if (node == null || node.getDataSource() == null)
return;
DataSourceInfo dsi = ((ProjectDataSource) node.getDataSource()).getDataSourceInfo();
String selectedItem = (String) view.getPasswordLocation().getSelectedItem();
if (selectedItem.equals(DataSourceInfo.PASSWORD_LOCATION_CLASSPATH))
updatePasswordElements(true, true, dsi.getPassword(), "Password Filename:", dsi.getPasswordSourceFilename());
else if (selectedItem.equals(DataSourceInfo.PASSWORD_LOCATION_EXECUTABLE))
updatePasswordElements(false, true, null, "Password Executable:", dsi.getPasswordSourceExecutable());
else if (selectedItem.equals(DataSourceInfo.PASSWORD_LOCATION_MODEL))
updatePasswordElements(true, false, dsi.getPassword(), "Password Source:", dsi.getPasswordSourceModel());
else if (selectedItem.equals(DataSourceInfo.PASSWORD_LOCATION_URL))
updatePasswordElements(false, true, null, "Password URL:", dsi.getPasswordSourceUrl());
}