use of net.heartsome.cat.common.bean.DatabaseModelBean in project translationstudio8 by heartsome.
the class ProjectConfigerUtil method clearConfig.
public void clearConfig() {
if (null == config) {
return;
}
ProjectInfoBean currentProjectBean = config.getCurrentProjectConfig();
if (null == currentProjectBean) {
return;
}
currentProjectBean.setTbDb(new ArrayList<DatabaseModelBean>());
currentProjectBean.setTmDb(new ArrayList<DatabaseModelBean>());
config.updateProjectConfig(currentProjectBean);
try {
projcet.refreshLocal(IResource.DEPTH_ZERO, null);
} catch (CoreException e) {
logger.error("", e);
}
}
Aggregations