1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-03 22:35:43 +02:00

Cleaned up the "Session" class constructors.

This commit is contained in:
Mikhail Khodjaiants 2006-03-27 21:02:57 +00:00
parent 5d825a202d
commit 932f829054
2 changed files with 12 additions and 7 deletions

View file

@ -1,3 +1,7 @@
2006-03-27 Mikhail Khodjaiants
Cleaned up the "Session" class constructors.
* Session.java
2006-03-27 Mikhail Khodjaiants
Added the "getSessionConfiguration" method to allow clients to provide their own session configurations.
* AbstractGDBCDIDebugger.java

View file

@ -43,26 +43,27 @@ public class Session implements ICDISession, ICDISessionObject {
SourceManager sourceManager;
ICDISessionConfiguration configuration;
public Session(MISession miSession, boolean attach) {
public Session(MISession miSession, ICDISessionConfiguration configuration) {
commonSetup();
//setConfiguration(new SessionConfiguration(this));
Target target = new Target(this, miSession);
addTargets(new Target[] { target });
setConfiguration(configuration);
}
// Why do we need this?
public Session(MISession miSession, boolean attach) {
this(miSession);
}
public Session(MISession miSession) {
commonSetup();
//setConfiguration(new CoreFileConfiguration());
Target target = new Target(this, miSession);
addTargets(new Target[] { target });
setConfiguration(new SessionConfiguration(this));
}
private void commonSetup() {
props = new Properties();
setConfiguration(new SessionConfiguration(this));
processManager = new ProcessManager(this);
breakpointManager = new BreakpointManager(this);
eventManager = new EventManager(this);