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 204457 Details for
Bug 347557
[Edit] NPE when saving a file in a compare editor (always)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
org.eclipse.teamui fix v03
patch_347557_2.txt (text/plain), 2.01 KB, created by
Malgorzata Janczarska
on 2011-10-03 12:07:04 EDT
(
hide
)
Description:
org.eclipse.teamui fix v03
Filename:
MIME Type:
Creator:
Malgorzata Janczarska
Created:
2011-10-03 12:07:04 EDT
Size:
2.01 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.team.ui >Index: src/org/eclipse/team/internal/ui/synchronize/LocalResourceSaveableComparison.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/LocalResourceSaveableComparison.java,v >retrieving revision 1.11 >diff -u -r1.11 LocalResourceSaveableComparison.java >--- src/org/eclipse/team/internal/ui/synchronize/LocalResourceSaveableComparison.java 15 Apr 2011 11:51:01 -0000 1.11 >+++ src/org/eclipse/team/internal/ui/synchronize/LocalResourceSaveableComparison.java 3 Oct 2011 16:03:12 -0000 >@@ -247,10 +247,10 @@ > */ > public String getName() { > // Return the name of the file element as held in the compare input >- if (fileElement.equals(input.getLeft())) { >+ if (input.getLeft().equals(fileElement)) { > return input.getLeft().getName(); > } >- if (fileElement.equals(input.getRight())) { >+ if (input.getRight().equals(fileElement)) { > return input.getRight().getName(); > } > // Fallback call returning name of the main non-null element of the input >@@ -288,20 +288,28 @@ > > ContentMergeViewer cmv = (ContentMergeViewer) e.getSource(); > >- if (fileElement.equals(input.getLeft())) { >+ if (input.getLeft().equals(fileElement)) { > if (changed && cmv.internalIsLeftDirty()) > setDirty(changed); > else if (!changed && !cmv.internalIsLeftDirty()) { > setDirty(changed); > } > } >- if (fileElement.equals(input.getRight())) { >+ if (input.getRight().equals(fileElement)) { > if (changed && cmv.internalIsRightDirty()) > setDirty(changed); > else if (!changed && !cmv.internalIsRightDirty()) { > setDirty(changed); > } > } >+ >+ if(fileElement==null){ >+ if(changed && (cmv.internalIsLeftDirty() || cmv.internalIsRightDirty())) >+ setDirty(changed); >+ if(!changed && !cmv.internalIsLeftDirty() && !cmv.internalIsRightDirty()) >+ setDirty(changed); >+ } >+ > } > } >
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 347557
:
201902
|
201906
|
204202
|
204452
|
204457
|
204502
|
204754
|
204957
|
205359
|
205361
|
205407
|
205708