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 251461 Details for
Bug 461549
[patch] [target] Dont increment sequence number during reload and provide tooltips for reload and update
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 for not increasing sequence number by Markus K
file_441190.txt (text/plain), 1.84 KB, created by
Vikas Chandra
on 2015-03-11 07:53:14 EDT
(
hide
)
Description:
Patch for not increasing sequence number by Markus K
Filename:
MIME Type:
Creator:
Vikas Chandra
Created:
2015-03-11 07:53:14 EDT
Size:
1.84 KB
patch
obsolete
>diff --git a/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/target/P2TargetUtils.java b/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/target/P2TargetUtils.java >index de96636..d563fce 100644 >--- a/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/target/P2TargetUtils.java >+++ b/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/target/P2TargetUtils.java >@@ -218,6 +218,14 @@ > } > } > >+ @SuppressWarnings("restriction") >+ public static void forceCheckTarget(final ITargetDefinition target) { >+ final P2TargetUtils result = getSynchronizer(target); >+ if (result != null && result.fProfile != null && result.fProfile instanceof Profile) { >+ ((Profile) result.fProfile).setProperty(PROP_SEQUENCE_NUMBER, "-1"); //$NON-NLS-1$ >+ } >+ } >+ > /** > * Performs garbage collection based on remaining profiles. Should be called to avoid > * having PDE's bundle pool area grow unbounded. >diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/shared/target/TargetLocationsGroup.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/shared/target/TargetLocationsGroup.java >index fdfa816..f2fd83a 100644 >--- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/shared/target/TargetLocationsGroup.java >+++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/shared/target/TargetLocationsGroup.java >@@ -557,14 +557,12 @@ > > //delete profile > try { >+ // TODO might want to merge forceCheckTarget into delete Profile? >+ P2TargetUtils.forceCheckTarget(fTarget); > P2TargetUtils.deleteProfile(fTarget.getHandle()); > } catch (CoreException e) { > PDEPlugin.log(e); > } >- >- // increase sequence number >- if (fTarget instanceof TargetDefinition) >- ((TargetDefinition) fTarget).incrementSequenceNumber(); > > Job job = new UIJob("Reloading...") { //$NON-NLS-1$ > @Override
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 461549
: 251461