|
Lines 532-538
Link Here
|
| 532 |
info.locationKind = LocationKind.LOCATION; |
532 |
info.locationKind = LocationKind.LOCATION; |
| 533 |
info.selfConnected = true; |
533 |
info.selfConnected = true; |
| 534 |
} |
534 |
} |
| 535 |
model = getModel((IStructuredDocument) buffer.getDocument()); |
535 |
/* |
|
|
536 |
* Check the document type. Although returning null for |
| 537 |
* unknown documents would be fair, try to get a model if |
| 538 |
* the document is at least a valid type. |
| 539 |
*/ |
| 540 |
IDocument bufferDocument = buffer.getDocument(); |
| 541 |
if (bufferDocument instanceof IStructuredDocument) { |
| 542 |
model = getModel((IStructuredDocument) bufferDocument); |
| 543 |
} |
| 544 |
else { |
| 545 |
/* |
| 546 |
* 190768 - Quick diff marks do not disappear in the |
| 547 |
* vertical ruler of JavaScript editor |
| 548 |
*/ |
| 549 |
bufferManager.disconnect(location, LocationKind.IFILE, getProgressMonitor()); |
| 550 |
} |
| 536 |
} |
551 |
} |
| 537 |
} |
552 |
} |
| 538 |
catch (CoreException e) { |
553 |
catch (CoreException e) { |
|
Lines 586-591
Link Here
|
| 586 |
if (bufferDocument instanceof IStructuredDocument) { |
601 |
if (bufferDocument instanceof IStructuredDocument) { |
| 587 |
model = getModel((IStructuredDocument) bufferDocument); |
602 |
model = getModel((IStructuredDocument) bufferDocument); |
| 588 |
} |
603 |
} |
|
|
604 |
else { |
| 605 |
/* |
| 606 |
* 190768 - Quick diff marks do not disappear in the |
| 607 |
* vertical ruler of JavaScript editor |
| 608 |
*/ |
| 609 |
bufferManager.disconnect(location, LocationKind.IFILE, getProgressMonitor()); |
| 610 |
} |
| 589 |
} |
611 |
} |
| 590 |
} |
612 |
} |
| 591 |
} |
613 |
} |