| 606 | | fThread = new XDebugThread(this); |
|---|
| 607 | | fThreads = new IThread[] {fThread}; |
|---|
| 608 | | fireEvent(new DebugEvent(this, DebugEvent.CHANGE, DebugEvent.CHANGE)); |
|---|
| 609 | | try { |
|---|
| 610 | | started(); |
|---|
| 611 | | } catch( DebugException e ){ |
|---|
| 612 | | e.printStackTrace(); |
|---|
| 613 | | } |
|---|
| 614 | | } |
|---|
| 615 | | |
|---|
| 616 | | private void setDebugConnection(XDebugConnection connection) { |
|---|
| 617 | | if (connection != null) { |
|---|
| | 605 | if (setDebugConnection(connection)) { |
|---|
| | 606 | fThread = new XDebugThread(this); |
|---|
| | 607 | fThreads = new IThread[] {fThread}; |
|---|
| | 608 | fireEvent(new DebugEvent(this, DebugEvent.CHANGE, DebugEvent.CHANGE)); |
|---|
| | 609 | try { |
|---|
| | 610 | started(); |
|---|
| | 611 | } catch( DebugException e ){ |
|---|
| | 612 | e.printStackTrace(); |
|---|
| | 613 | } |
|---|
| | 614 | } |
|---|
| | 615 | } |
|---|
| | 616 | |
|---|
| | 617 | private boolean setDebugConnection(XDebugConnection connection) { |
|---|
| | 618 | if (connection != null && fDebugConnection == null) { |
|---|