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 55622 Details for
Bug 167016
Update Manager keeps trying to update Eclipse
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]
patch
167016.patch (text/plain), 3.15 KB, created by
Branko Tripkovic
on 2006-12-13 18:27:51 EST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Branko Tripkovic
Created:
2006-12-13 18:27:51 EST
Size:
3.15 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.update.core >Index: src/org/eclipse/update/internal/operations/UpdateUtils.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.update.core/src/org/eclipse/update/internal/operations/UpdateUtils.java,v >retrieving revision 1.33 >diff -u -r1.33 UpdateUtils.java >--- src/org/eclipse/update/internal/operations/UpdateUtils.java 2 Jun 2006 00:01:33 -0000 1.33 >+++ src/org/eclipse/update/internal/operations/UpdateUtils.java 13 Dec 2006 23:09:09 -0000 >@@ -400,6 +400,7 @@ > category.setFeatures(features); > UpdateSearchRequest searchRequest = new UpdateSearchRequest(category, scope); > searchRequest.addFilter(new EnvironmentFilter()); >+ searchRequest.addFilter(new BackLevelFilter()); > return searchRequest; > } > >Index: src/org/eclipse/update/search/BackLevelFilter.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.update.core/src/org/eclipse/update/search/BackLevelFilter.java,v >retrieving revision 1.7 >diff -u -r1.7 BackLevelFilter.java >--- src/org/eclipse/update/search/BackLevelFilter.java 1 Mar 2005 20:29:16 -0000 1.7 >+++ src/org/eclipse/update/search/BackLevelFilter.java 13 Dec 2006 23:09:09 -0000 >@@ -30,8 +30,30 @@ > * @since 3.0 > */ > public class BackLevelFilter extends BaseFilter { >+ >+ public boolean accept(IFeature match) { >+ >+ System.out.println(match.getVersionedIdentifier()); >+ PluginVersionIdentifier matchVid = match.getVersionedIdentifier().getVersion(); >+ IFeature [] installed = UpdateUtils.getInstalledFeatures(match.getVersionedIdentifier(), false); >+ if (installed.length==0) return true; >+ >+ for (int i=0; i<installed.length; i++) { >+ PluginVersionIdentifier ivid = installed[i].getVersionedIdentifier().getVersion(); >+ if (matchVid.isGreaterThan(ivid)) >+ continue; >+ // installed version is the same or newer than >+ // the match - filter out >+ return false; >+ } >+ return true; >+ >+ } >+ > public boolean accept(IFeatureReference match) { >+ > try { >+ System.out.println(match.getVersionedIdentifier()); > PluginVersionIdentifier matchVid = match.getVersionedIdentifier().getVersion(); > IFeature [] installed = UpdateUtils.getInstalledFeatures(match.getVersionedIdentifier(), false); > if (installed.length==0) return true; >Index: src/org/eclipse/update/search/EnvironmentFilter.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.update.core/src/org/eclipse/update/search/EnvironmentFilter.java,v >retrieving revision 1.8 >diff -u -r1.8 EnvironmentFilter.java >--- src/org/eclipse/update/search/EnvironmentFilter.java 1 Mar 2005 20:29:16 -0000 1.8 >+++ src/org/eclipse/update/search/EnvironmentFilter.java 13 Dec 2006 23:09:09 -0000 >@@ -29,6 +29,11 @@ > * @since 3.0 > */ > public class EnvironmentFilter extends BaseFilter { >+ >+ public boolean accept(IFeature match) { >+ return UpdateManagerUtils.isValidEnvironment(match); >+ } >+ > public boolean accept(IFeatureReference match) { > return UpdateManagerUtils.isValidEnvironment(match); > }
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 167016
: 55622 |
55699