Program: 140421
Project: 140421
Buggy source:
/** 
 * DOC qzhang Comment method "activeData".
 */
public void activeData(){
  if (SE_ID.equals(perspectiveId)) {
    IFolder folder=ResourcesPlugin.getWorkspace().getRoot().getProject(DQStructureManager.METADATA).getFolder(DQStructureManager.DB_CONNECTIONS);
    List<TdDataProvider> listTdDataProviders=DqRepositoryViewService.listTdDataProviders(folder);
    SQLExplorerPlugin default1=SQLExplorerPlugin.getDefault();
    AliasManager aliasManager=default1.getAliasManager();
    aliasManager.getAliases().clear();
    Set<User> users=new HashSet<User>();
    try {
      aliasManager.closeAllConnections();
    }
 catch (    ExplorerException e1) {
      log.error(e1,e1);
    }
    for (    TdDataProvider tdDataProvider : listTdDataProviders) {
      TypedReturnCode<TdProviderConnection> tdPc=DataProviderHelper.getTdProviderConnection(tdDataProvider);
      TdProviderConnection providerConnection=tdPc.getObject();
      String url=providerConnection.getConnectionString();
      Alias alias=new Alias(tdDataProvider.getName());
      String user=TaggedValueHelper.getValue("String_Node_Str",providerConnection);
      String password=TaggedValueHelper.getValue("String_Node_Str",providerConnection);
      User previousUser=new User(user,password);
      alias.setDefaultUser(previousUser);
      alias.setAutoLogon(false);
      alias.setConnectAtStartup(true);
      alias.setUrl(url);
      ManagedDriver manDr=default1.getDriverModel().getDriver(EDriverName.getId(providerConnection.getDriverClassName()));
      alias.setDriver(manDr);
      try {
        aliasManager.addAlias(alias);
      }
 catch (      ExplorerException e) {
        log.error(e,e);
      }
      users.add(previousUser);
    }
    aliasManager.modelChanged();
  }
}

Fixed version (ground truth):
/** 
 * DOC qzhang Comment method "activeData".
 */
public void activeData(){
  if (SE_ID.equals(perspectiveId)) {
    IFolder folder=ResourcesPlugin.getWorkspace().getRoot().getProject(DQStructureManager.METADATA).getFolder(DQStructureManager.DB_CONNECTIONS);
    List<TdDataProvider> listTdDataProviders=DqRepositoryViewService.listTdDataProviders(folder,true);
    SQLExplorerPlugin default1=SQLExplorerPlugin.getDefault();
    AliasManager aliasManager=default1.getAliasManager();
    aliasManager.getAliases().clear();
    Set<User> users=new HashSet<User>();
    try {
      aliasManager.closeAllConnections();
    }
 catch (    ExplorerException e1) {
      log.error(e1,e1);
    }
    for (    TdDataProvider tdDataProvider : listTdDataProviders) {
      TypedReturnCode<TdProviderConnection> tdPc=DataProviderHelper.getTdProviderConnection(tdDataProvider);
      TdProviderConnection providerConnection=tdPc.getObject();
      String url=providerConnection.getConnectionString();
      Alias alias=new Alias(tdDataProvider.getName());
      String user=TaggedValueHelper.getValue("String_Node_Str",providerConnection);
      String password=TaggedValueHelper.getValue("String_Node_Str",providerConnection);
      User previousUser=new User(user,password);
      alias.setDefaultUser(previousUser);
      alias.setAutoLogon(false);
      alias.setConnectAtStartup(true);
      alias.setUrl(url);
      ManagedDriver manDr=default1.getDriverModel().getDriver(EDriverName.getId(providerConnection.getDriverClassName()));
      alias.setDriver(manDr);
      try {
        aliasManager.addAlias(alias);
      }
 catch (      ExplorerException e) {
        log.error(e,e);
      }
      users.add(previousUser);
    }
    aliasManager.modelChanged();
  }
}