1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 09:46:02 +02:00

allow to override the configuration

This commit is contained in:
Alain Magloire 2004-11-02 19:57:39 +00:00
parent f93436e891
commit 0b1094160f

View file

@ -91,6 +91,9 @@ public class Target extends SessionObject implements ICDITarget {
return miSession;
}
public void setConfiguration(ICDITargetConfiguration configuration) {
fConfiguration = configuration;
}
/**
* @see org.eclipse.cdt.debug.core.cdi.model.ICDIObject#getTarget()
*/
@ -950,7 +953,7 @@ public class Target extends SessionObject implements ICDITarget {
* @see org.eclipse.cdt.debug.core.cdi.model.ICDITarget#getConfiguration()
*/
public ICDITargetConfiguration getConfiguration() {
if (fConfiguration != null) {
if (fConfiguration == null) {
if (miSession.isProgramSession()) {
fConfiguration = new TargetConfiguration(this);
} else if (miSession.isAttachSession()){
@ -960,7 +963,7 @@ public class Target extends SessionObject implements ICDITarget {
} else {
fConfiguration = new TargetConfiguration(this);
}
}
}
return fConfiguration;
}