Bug 398994 - [patch] [target] Target Content not updated when back
button is used
Signed-off-by: Pragya Gaur <pragya.g@samsung.com>
diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/target/TargetCreationPage.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/target/TargetCreationPage.java
index 2538568..e513d83 100644
--- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/target/TargetCreationPage.java
+++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/target/TargetCreationPage.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2013 IBM Corporation and others.
+ * Copyright (c) 2005, 2015 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -223,6 +223,12 @@
int option = getInitializationOption();
if (fTargetDefs[option] == null) {
fTargetDefs[option] = createTarget(option);
+ } else if (option == USE_EXISTING_TARGET) {
+ try {
+ populateFromTemplate(fTargetDefs[option], getTargetId());
+ } catch (CoreException e) {
+ setErrorMessage(e.getMessage());
+ }
}
target = fTargetDefs[option];
if (target != null) {