Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 149072 Details for
Bug 291695
Element compare fails to use source range
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
propose patch
bug_291695_patch.txt (text/plain), 1.84 KB, created by
Stephan Herrmann
on 2009-10-07 21:02:39 EDT
(
hide
)
Description:
propose patch
Filename:
MIME Type:
Creator:
Stephan Herrmann
Created:
2009-10-07 21:02:39 EDT
Size:
1.84 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.compare >Index: compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java,v >retrieving revision 1.265 >diff -u -r1.265 TextMergeViewer.java >--- compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java 25 Sep 2009 13:52:36 -0000 1.265 >+++ compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java 8 Oct 2009 00:54:09 -0000 >@@ -2818,7 +2818,14 @@ > fLeftContributor.setEncodingIfAbsent(fRightContributor); > fRightContributor.setEncodingIfAbsent(fLeftContributor); > fAncestorContributor.setEncodingIfAbsent(fLeftContributor); >- >+ >+ if (!isConfigured) { >+ configureSourceViewer(fAncestor.getSourceViewer(), false); >+ configureSourceViewer(fLeft.getSourceViewer(), cc.isLeftEditable() && cp.isLeftEditable(input)); >+ configureSourceViewer(fRight.getSourceViewer(), cc.isRightEditable() && cp.isRightEditable(input)); >+ isConfigured = true; // configure once >+ } >+ > // set new documents > fLeftContributor.setDocument(fLeft, cc.isLeftEditable() && cp.isLeftEditable(input)); > fLeftLineCount= fLeft.getLineCount(); >@@ -2827,13 +2834,6 @@ > fRightLineCount= fRight.getLineCount(); > > fAncestorContributor.setDocument(fAncestor, false); >- >- if (!isConfigured) { >- configureSourceViewer(fAncestor.getSourceViewer(), false); >- configureSourceViewer(fLeft.getSourceViewer(), cc.isLeftEditable() && cp.isLeftEditable(input)); >- configureSourceViewer(fRight.getSourceViewer(), cc.isRightEditable() && cp.isRightEditable(input)); >- isConfigured = true; // configure once >- } > > //if the input is part of a patch hunk, toggle synchronized scrolling > /*if (isPatchHunk()){
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 291695
:
149072
|
149655