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:
@@ -790,7 +790,7 @@ public class ExtractStringRefactoring extends Refactoring {
|
|||||||
|
|
||||||
// Prepare the change for the XML file.
|
// 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
|
// We actually change it only if the ID doesn't exist yet
|
||||||
Change change = createXmlChange((IFile) targetXml, mXmlStringId, mXmlStringValue,
|
Change change = createXmlChange((IFile) targetXml, mXmlStringId, mXmlStringValue,
|
||||||
status, SubMonitor.convert(monitor, 1));
|
status, SubMonitor.convert(monitor, 1));
|
||||||
|
|||||||
Reference in New Issue
Block a user