else {
targetDirectory = ((ConfigTreeNode) target).getConfig().getDirectory();
}
for (ATreeNode treeNode : droppedSelection) {
if (treeNode instanceof ConfigTreeNode) {
ConfigTreeNode configTreeNode = (ConfigTreeNode) treeNode;
IConfig<?> movedConfig = configTreeNode.getConfig();
if (!targetDirectory.equals(movedConfig.getDirectory())) {
if (!movedConfig.isLoaded()) {
movedConfig = loadConfig(movedConfig);
configTreeNode.setConfig(movedConfig);
}
boolean modified = movedConfig.isModified();
moveConfig(movedConfig, targetDirectory);
if (!modified) {
configTreeNode.setConfig(saveConfig(movedConfig));
}
}
}
else {
if (!isChild(target, treeNode)) {