|
Lines 12-17
Link Here
|
| 12 |
* Martin Oberhuber (Wind River) - [294327] After logging in, the remote prompt is hidden |
12 |
* Martin Oberhuber (Wind River) - [294327] After logging in, the remote prompt is hidden |
| 13 |
* Anton Leherbauer (Wind River) - [294468] Fix scroller and text line rendering |
13 |
* Anton Leherbauer (Wind River) - [294468] Fix scroller and text line rendering |
| 14 |
* Uwe Stieber (Wind River) - [205486] Fix ScrollLock always moving to line 1 |
14 |
* Uwe Stieber (Wind River) - [205486] Fix ScrollLock always moving to line 1 |
|
|
15 |
* Anton Leherbauer (Wind River) - [219589] Copy an entire line selection |
| 15 |
*******************************************************************************/ |
16 |
*******************************************************************************/ |
| 16 |
package org.eclipse.tm.internal.terminal.textcanvas; |
17 |
package org.eclipse.tm.internal.terminal.textcanvas; |
| 17 |
|
18 |
|
|
Lines 92-103
Link Here
|
| 92 |
public void terminalDataChanged() { |
93 |
public void terminalDataChanged() { |
| 93 |
if(isDisposed()) |
94 |
if(isDisposed()) |
| 94 |
return; |
95 |
return; |
|
|
96 |
// scroll to end (unless scroll lock is active) |
| 95 |
scrollToEnd(); |
97 |
scrollToEnd(); |
| 96 |
// make sure the scroll area is correct: |
|
|
| 97 |
if (!fScrollLock) { |
| 98 |
scrollY(getVerticalBar()); |
| 99 |
scrollX(getHorizontalBar()); |
| 100 |
} |
| 101 |
} |
98 |
} |
| 102 |
}); |
99 |
}); |
| 103 |
// let the cursor blink if the text canvas gets the focus... |
100 |
// let the cursor blink if the text canvas gets the focus... |
|
Lines 167-173
Link Here
|
| 167 |
if (fDraggingStart !=null && !p.equals(fDraggingEnd)) { |
164 |
if (fDraggingStart !=null && !p.equals(fDraggingEnd)) { |
| 168 |
fDraggingEnd = p; |
165 |
fDraggingEnd = p; |
| 169 |
if (compare(p, fDraggingStart) < 0) { |
166 |
if (compare(p, fDraggingStart) < 0) { |
| 170 |
fCellCanvasModel.setSelection(p.y, fDraggingStart.y, p.x, fDraggingStart.x); |
167 |
// bug 219589 - make sure selection start coordinates are non-negative |
|
|
168 |
int startColumn = Math.max(0, p.x); |
| 169 |
int startRow = Math.max(p.y, 0); |
| 170 |
fCellCanvasModel.setSelection(startRow, fDraggingStart.y, startColumn, fDraggingStart.x); |
| 171 |
} else { |
171 |
} else { |
| 172 |
fCellCanvasModel.setSelection(fDraggingStart.y, p.y, fDraggingStart.x, p.x); |
172 |
fCellCanvasModel.setSelection(fDraggingStart.y, p.y, fDraggingStart.x, p.x); |
| 173 |
|
173 |
|
|
Lines 250-263
Link Here
|
| 250 |
setVirtualExtend(getCols()*getCellWidth(),getRows()*getCellHeight()); |
250 |
setVirtualExtend(getCols()*getCellWidth(),getRows()*getCellHeight()); |
| 251 |
setRedraw(false); |
251 |
setRedraw(false); |
| 252 |
try { |
252 |
try { |
| 253 |
// scroll to end |
253 |
// scroll to end (unless scroll lock is active) |
| 254 |
scrollToEnd(); |
254 |
scrollToEnd(); |
| 255 |
// make sure the scroll area is correct: |
|
|
| 256 |
if (!fScrollLock) { |
| 257 |
scrollY(getVerticalBar()); |
| 258 |
scrollX(getHorizontalBar()); |
| 259 |
} |
| 260 |
|
| 261 |
getParent().layout(); |
255 |
getParent().layout(); |
| 262 |
} finally { |
256 |
} finally { |
| 263 |
setRedraw(true); |
257 |
setRedraw(true); |
|
Lines 273-278
Link Here
|
| 273 |
if(v.y!=-y) { |
267 |
if(v.y!=-y) { |
| 274 |
setVirtualOrigin(v.x,y); |
268 |
setVirtualOrigin(v.x,y); |
| 275 |
} |
269 |
} |
|
|
270 |
// make sure the scroll area is correct: |
| 271 |
scrollY(getVerticalBar()); |
| 272 |
scrollX(getHorizontalBar()); |
| 276 |
} |
273 |
} |
| 277 |
} |
274 |
} |
| 278 |
/** |
275 |
/** |