Browse Source

REVERT

master
kerry 7 years ago
parent
commit
9a3ccfef6f
  1. 2
      designer-base/src/com/fr/design/actions/server/ConnectionListAction.java
  2. 2
      designer-base/src/com/fr/design/actions/server/GlobalTableDataAction.java

2
designer-base/src/com/fr/design/actions/server/ConnectionListAction.java

@ -68,10 +68,8 @@ public class ConnectionListAction extends UpdateAction {
} }
protected void renameConnection(String oldName, String newName) { protected void renameConnection(String oldName, String newName) {
if(datasourceManager.getConnection(oldName) != null){
datasourceManager.renameConnection(oldName, newName); datasourceManager.renameConnection(oldName, newName);
} }
}
}; };
final BasicDialog databaseListDialog = databaseManagerPane.showLargeWindow(designerFrame, null); final BasicDialog databaseListDialog = databaseManagerPane.showLargeWindow(designerFrame, null);
databaseListDialog.addDialogActionListener(new DialogActionAdapter() { databaseListDialog.addDialogActionListener(new DialogActionAdapter() {

2
designer-base/src/com/fr/design/actions/server/GlobalTableDataAction.java

@ -78,10 +78,8 @@ public class GlobalTableDataAction extends UpdateAction implements ResponseDataS
Configurations.update(new Worker() { Configurations.update(new Worker() {
@Override @Override
public void run() { public void run() {
if(tableDataConfig.getTableData(oldName) != null){
tableDataConfig.renameTableData(oldName, newName); tableDataConfig.renameTableData(oldName, newName);
} }
}
@Override @Override
public Class<? extends Configuration>[] targets() { public Class<? extends Configuration>[] targets() {

Loading…
Cancel
Save