am b550cce4: ADT XML extract string ID: fix inverted test.

Merge commit 'b550cce443894408ff76eecd99c744787b12bd8b'

* commit 'b550cce443894408ff76eecd99c744787b12bd8b':
  ADT XML extract string ID: fix inverted test.
This commit is contained in:
Raphael
2009-07-14 10:21:43 -07:00
committed by The Android Open Source Project

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));