mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
Cleaned up the "Session" class constructors.
This commit is contained in:
parent
5d825a202d
commit
932f829054
2 changed files with 12 additions and 7 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2006-03-27 Mikhail Khodjaiants
|
||||||
|
Cleaned up the "Session" class constructors.
|
||||||
|
* Session.java
|
||||||
|
|
||||||
2006-03-27 Mikhail Khodjaiants
|
2006-03-27 Mikhail Khodjaiants
|
||||||
Added the "getSessionConfiguration" method to allow clients to provide their own session configurations.
|
Added the "getSessionConfiguration" method to allow clients to provide their own session configurations.
|
||||||
* AbstractGDBCDIDebugger.java
|
* AbstractGDBCDIDebugger.java
|
||||||
|
|
|
@ -43,26 +43,27 @@ public class Session implements ICDISession, ICDISessionObject {
|
||||||
SourceManager sourceManager;
|
SourceManager sourceManager;
|
||||||
ICDISessionConfiguration configuration;
|
ICDISessionConfiguration configuration;
|
||||||
|
|
||||||
public Session(MISession miSession, boolean attach) {
|
public Session(MISession miSession, ICDISessionConfiguration configuration) {
|
||||||
commonSetup();
|
commonSetup();
|
||||||
//setConfiguration(new SessionConfiguration(this));
|
|
||||||
|
|
||||||
Target target = new Target(this, miSession);
|
Target target = new Target(this, miSession);
|
||||||
addTargets(new Target[] { target });
|
addTargets(new Target[] { target });
|
||||||
|
setConfiguration(configuration);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Why do we need this?
|
||||||
|
public Session(MISession miSession, boolean attach) {
|
||||||
|
this(miSession);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Session(MISession miSession) {
|
public Session(MISession miSession) {
|
||||||
commonSetup();
|
commonSetup();
|
||||||
//setConfiguration(new CoreFileConfiguration());
|
|
||||||
|
|
||||||
Target target = new Target(this, miSession);
|
Target target = new Target(this, miSession);
|
||||||
addTargets(new Target[] { target });
|
addTargets(new Target[] { target });
|
||||||
|
setConfiguration(new SessionConfiguration(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void commonSetup() {
|
private void commonSetup() {
|
||||||
props = new Properties();
|
props = new Properties();
|
||||||
setConfiguration(new SessionConfiguration(this));
|
|
||||||
|
|
||||||
processManager = new ProcessManager(this);
|
processManager = new ProcessManager(this);
|
||||||
breakpointManager = new BreakpointManager(this);
|
breakpointManager = new BreakpointManager(this);
|
||||||
eventManager = new EventManager(this);
|
eventManager = new EventManager(this);
|
||||||
|
|
Loading…
Add table
Reference in a new issue