use of org.talend.mdm.workbench.serverexplorer.ui.dialogs.ServerDefDialog in project tmdm-studio-se by Talend.
the class ServerExplorer method editServerDef.
private void editServerDef() {
IRepositoryViewObject viewObject = getCurSelectedViewObject();
if (viewObject != null) {
MDMServerDefItem mdmItem = getMDMItem(viewObject);
if (mdmItem != null) {
MDMServerDef serverDef = mdmItem.getServerDef();
ServerDefDialog dialog = new ServerDefDialog(getViewSite().getShell(), serverDef);
if (dialog.open() == IDialogConstants.OK_ID) {
String tempPasswd = serverDef.getTempPasswd();
ServerDefService.updateTempPassword(viewObject.getId(), tempPasswd);
boolean result = ServerDefService.saveServeDef(mdmItem);
if (result) {
refreshServerDefs();
}
}
}
}
}
use of org.talend.mdm.workbench.serverexplorer.ui.dialogs.ServerDefDialog in project tmdm-studio-se by Talend.
the class ServerExplorer method editServerDef.
private void editServerDef(IRepositoryViewObject viewObject) {
if (viewObject != null) {
MDMServerDefItem mdmItem = getMDMItem(viewObject);
if (mdmItem != null) {
MDMServerDef serverDef = mdmItem.getServerDef();
ServerDefDialog dialog = new ServerDefDialog(getViewSite().getShell(), serverDef);
if (dialog.open() == IDialogConstants.OK_ID) {
String tempPasswd = serverDef.getTempPasswd();
ServerDefService.updateTempPassword(viewObject.getId(), tempPasswd);
boolean result = ServerDefService.saveServeDef(mdmItem);
if (result) {
refreshServerDefs();
}
}
}
}
}
Aggregations