ADT XML extract string ID: fix inverted test.

This commit is contained in:
Raphael
2009-07-14 08:28:54 -04:00
parent 7feb9a82a3
commit b550cce443

View File

@@ -790,7 +790,7 @@ public class ExtractStringRefactoring extends Refactoring {
// Prepare the change for the XML file.
if (mXmlHelper.valueOfStringId(mProject, mTargetXmlFileWsPath, mXmlStringId) != null) {
if (mXmlHelper.valueOfStringId(mProject, mTargetXmlFileWsPath, mXmlStringId) == null) {
// We actually change it only if the ID doesn't exist yet
Change change = createXmlChange((IFile) targetXml, mXmlStringId, mXmlStringValue,
status, SubMonitor.convert(monitor, 1));