mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
allow to override the configuration
This commit is contained in:
parent
f93436e891
commit
0b1094160f
1 changed files with 5 additions and 2 deletions
|
@ -91,6 +91,9 @@ public class Target extends SessionObject implements ICDITarget {
|
||||||
return miSession;
|
return miSession;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setConfiguration(ICDITargetConfiguration configuration) {
|
||||||
|
fConfiguration = configuration;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* @see org.eclipse.cdt.debug.core.cdi.model.ICDIObject#getTarget()
|
* @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()
|
* @see org.eclipse.cdt.debug.core.cdi.model.ICDITarget#getConfiguration()
|
||||||
*/
|
*/
|
||||||
public ICDITargetConfiguration getConfiguration() {
|
public ICDITargetConfiguration getConfiguration() {
|
||||||
if (fConfiguration != null) {
|
if (fConfiguration == null) {
|
||||||
if (miSession.isProgramSession()) {
|
if (miSession.isProgramSession()) {
|
||||||
fConfiguration = new TargetConfiguration(this);
|
fConfiguration = new TargetConfiguration(this);
|
||||||
} else if (miSession.isAttachSession()){
|
} else if (miSession.isAttachSession()){
|
||||||
|
@ -960,7 +963,7 @@ public class Target extends SessionObject implements ICDITarget {
|
||||||
} else {
|
} else {
|
||||||
fConfiguration = new TargetConfiguration(this);
|
fConfiguration = new TargetConfiguration(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return fConfiguration;
|
return fConfiguration;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue