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 155120 Details for
Bug 292691
PDE's use of p2 API
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 to accomodate API changes when adding generics to p2
generics-pde.patch (text/plain), 20.47 KB, created by
Thomas Hallgren
on 2009-12-29 20:08:29 EST
(
hide
)
Description:
Patch to accomodate API changes when adding generics to p2
Filename:
MIME Type:
Creator:
Thomas Hallgren
Created:
2009-12-29 20:08:29 EST
Size:
20.47 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.pde.build >Index: src/org/eclipse/pde/internal/build/publisher/GatherFeatureAction.java >=================================================================== >RCS file: /cvsroot/eclipse/pde/build/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/publisher/GatherFeatureAction.java,v >retrieving revision 1.9.2.4 >diff -u -r1.9.2.4 GatherFeatureAction.java >--- src/org/eclipse/pde/internal/build/publisher/GatherFeatureAction.java 7 Dec 2009 04:36:01 -0000 1.9.2.4 >+++ src/org/eclipse/pde/internal/build/publisher/GatherFeatureAction.java 30 Dec 2009 01:06:27 -0000 >@@ -8,13 +8,12 @@ > ******************************************************************************/ > package org.eclipse.pde.internal.build.publisher; > >-import org.eclipse.equinox.p2.metadata.IInstallableUnit; >- >-import org.eclipse.equinox.p2.metadata.IArtifactKey; >- > import java.io.File; >+import java.util.List; > import org.eclipse.equinox.internal.p2.publisher.eclipse.FeatureParser; >-import org.eclipse.equinox.internal.provisional.p2.metadata.*; >+import org.eclipse.equinox.internal.provisional.p2.metadata.Version; >+import org.eclipse.equinox.p2.metadata.IArtifactKey; >+import org.eclipse.equinox.p2.metadata.IInstallableUnit; > import org.eclipse.equinox.p2.publisher.IPublisherInfo; > import org.eclipse.equinox.p2.publisher.eclipse.Feature; > import org.eclipse.equinox.p2.publisher.eclipse.FeaturesAction; >@@ -99,12 +98,12 @@ > return; > > // add all the artifacts associated with the feature >- IArtifactKey[] artifacts = featureIU.getArtifacts(); >- if (artifacts.length > 1) { >+ List artifacts = featureIU.getArtifacts(); >+ if (artifacts.size() > 1) { > //boo! > } > >- ArtifactDescriptor ad = (ArtifactDescriptor) PublisherHelper.createArtifactDescriptor(publisherInfo.getArtifactRepository(), artifacts[0], null); >+ ArtifactDescriptor ad = (ArtifactDescriptor) PublisherHelper.createArtifactDescriptor(publisherInfo.getArtifactRepository(), (IArtifactKey) artifacts.get(0), null); > processArtifactPropertiesAdvice(featureIU, ad, publisherInfo); > ad.setProperty(IArtifactDescriptor.DOWNLOAD_CONTENTTYPE, IArtifactDescriptor.TYPE_ZIP); > >Index: src/org/eclipse/pde/internal/build/publisher/compatibility/AssembledConfigAdvice.java >=================================================================== >RCS file: /cvsroot/eclipse/pde/build/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/publisher/compatibility/Attic/AssembledConfigAdvice.java,v >retrieving revision 1.1.2.1 >diff -u -r1.1.2.1 AssembledConfigAdvice.java >--- src/org/eclipse/pde/internal/build/publisher/compatibility/AssembledConfigAdvice.java 30 Oct 2009 18:54:01 -0000 1.1.2.1 >+++ src/org/eclipse/pde/internal/build/publisher/compatibility/AssembledConfigAdvice.java 30 Dec 2009 01:06:27 -0000 >@@ -11,7 +11,8 @@ > package org.eclipse.pde.internal.build.publisher.compatibility; > > import java.io.File; >-import java.util.Properties; >+import java.util.*; >+import org.eclipse.equinox.internal.p2.core.helpers.CollectionUtils; > import org.eclipse.equinox.internal.p2.publisher.eclipse.DataLoader; > import org.eclipse.equinox.internal.provisional.frameworkadmin.*; > import org.eclipse.equinox.internal.provisional.p2.metadata.Version; >@@ -35,12 +36,14 @@ > return configData.getBundles(); > } > >- public Properties getProperties() { >- Properties properties = configData.getProperties(); >+ public Map getProperties() { >+ Properties configProps = configData.getProperties(); >+ Map props = new HashMap(configProps.size() + 1); >+ CollectionUtils.putAll(configProps, props); > int startLevel = configData.getInitialBundleStartLevel(); > if (startLevel != BundleInfo.NO_LEVEL) >- properties.put("osgi.bundles.defaultStartLevel", String.valueOf(startLevel)); //$NON-NLS-1$ >- return properties; >+ props.put("osgi.bundles.defaultStartLevel", String.valueOf(startLevel)); //$NON-NLS-1$ >+ return props; > } > > public boolean isApplicable(String spec, boolean includeDefault, String id, Version version) { >Index: src_ant/org/eclipse/pde/internal/build/publisher/BrandP2Task.java >=================================================================== >RCS file: /cvsroot/eclipse/pde/build/org.eclipse.pde.build/src_ant/org/eclipse/pde/internal/build/publisher/BrandP2Task.java,v >retrieving revision 1.12.2.8 >diff -u -r1.12.2.8 BrandP2Task.java >--- src_ant/org/eclipse/pde/internal/build/publisher/BrandP2Task.java 8 Dec 2009 15:32:46 -0000 1.12.2.8 >+++ src_ant/org/eclipse/pde/internal/build/publisher/BrandP2Task.java 30 Dec 2009 01:06:27 -0000 >@@ -212,9 +212,9 @@ > newIUDescription.setTouchpointType(originalIU.getTouchpointType()); > newIUDescription.setFilter(originalIU.getFilter() == null ? null : ((LDAPQuery) originalIU.getFilter()).getFilter()); > >- ITouchpointData[] data = brandTouchpointData(originalIU.getTouchpointData()); >- for (int i = 0; i < data.length; i++) { >- newIUDescription.addTouchpointData(data[i]); >+ List data = brandTouchpointData(originalIU.getTouchpointData()); >+ for (int i = 0; i < data.size(); i++) { >+ newIUDescription.addTouchpointData((ITouchpointData) data.get(i)); > } > > IArtifactKey key = new ArtifactKey(PublisherHelper.BINARY_ARTIFACT_CLASSIFIER, newIUDescription.getId(), newIUDescription.getVersion()); >@@ -250,7 +250,7 @@ > private static final String INSTALL = "install"; //$NON-NLS-1$ > private static final String CONFIGURE = "configure"; //$NON-NLS-1$ > >- private ITouchpointData[] brandTouchpointData(ITouchpointData[] data) { >+ private List/*<ITouchpointData>*/brandTouchpointData(List/*<ITouchpointData>*/data) { > boolean haveChmod = false; > > String brandedLauncher = null; >@@ -261,12 +261,13 @@ > else > brandedLauncher = launcherName; > >- for (int i = 0; i < data.length; i++) { >- Map instructions = new HashMap(data[i].getInstructions()); >+ for (int i = 0; i < data.size(); i++) { >+ ITouchpointData td = (ITouchpointData) data.get(i); >+ Map instructions = new HashMap(td.getInstructions()); > > String[] phases = new String[] {INSTALL, CONFIGURE}; > for (int phase = 0; phase < phases.length; phase++) { >- ITouchpointInstruction instruction = data[i].getInstruction(phases[phase]); >+ ITouchpointInstruction instruction = td.getInstruction(phases[phase]); > if (instruction == null) > continue; > >@@ -310,7 +311,7 @@ > } > } > >- data[i] = new TouchpointData(instructions); >+ data.set(i, new TouchpointData(instructions)); > } > > //add a chmod if there wasn't one before >@@ -319,10 +320,10 @@ > TouchpointInstruction newInstruction = new TouchpointInstruction(body, null); > Map instructions = new HashMap(); > instructions.put(INSTALL, newInstruction); >- ArrayList newData = new ArrayList(data.length + 1); >- newData.addAll(Arrays.asList(data)); >+ ArrayList newData = new ArrayList(data.size() + 1); >+ newData.addAll(data); > newData.add(new TouchpointData(instructions)); >- data = (ITouchpointData[]) newData.toArray(new ITouchpointData[newData.size()]); >+ data = newData; > } > return data; > } >#P org.eclipse.pde.build.tests >Index: src/org/eclipse/pde/build/internal/tests/p2/P2TestCase.java >=================================================================== >RCS file: /cvsroot/eclipse/pde/build/org.eclipse.pde.build.tests/src/org/eclipse/pde/build/internal/tests/p2/P2TestCase.java,v >retrieving revision 1.15.2.6 >diff -u -r1.15.2.6 P2TestCase.java >--- src/org/eclipse/pde/build/internal/tests/p2/P2TestCase.java 21 Dec 2009 17:39:09 -0000 1.15.2.6 >+++ src/org/eclipse/pde/build/internal/tests/p2/P2TestCase.java 30 Dec 2009 01:06:30 -0000 >@@ -21,7 +21,8 @@ > import org.eclipse.equinox.internal.provisional.p2.metadata.*; > import org.eclipse.equinox.internal.provisional.p2.metadata.query.InstallableUnitQuery; > import org.eclipse.equinox.p2.internal.repository.tools.RepositoryUtilities; >-import org.eclipse.equinox.p2.metadata.*; >+import org.eclipse.equinox.p2.metadata.IArtifactKey; >+import org.eclipse.equinox.p2.metadata.IInstallableUnit; > import org.eclipse.equinox.p2.metadata.query.IQueryResult; > import org.eclipse.equinox.p2.repository.artifact.*; > import org.eclipse.equinox.p2.repository.metadata.IMetadataRepository; >@@ -176,9 +177,9 @@ > } > > public void assertTouchpoint(IInstallableUnit iu, String phase, String action) { >- ITouchpointData[] data = iu.getTouchpointData(); >- for (int i = 0; i < data.length; i++) { >- ITouchpointInstruction instruction = data[i].getInstruction(phase); >+ List/*<ITouchpointData>*/data = iu.getTouchpointData(); >+ for (int i = 0; i < data.size(); i++) { >+ ITouchpointInstruction instruction = ((ITouchpointData) data.get(i)).getInstruction(phase); > if (instruction != null && instruction.getBody().indexOf(action) > -1) > return; > } >@@ -186,9 +187,10 @@ > } > > public void assertProvides(IInstallableUnit iu, String namespace, String name) { >- IProvidedCapability[] caps = iu.getProvidedCapabilities(); >- for (int i = 0; i < caps.length; i++) { >- if (caps[i].getNamespace().equals(namespace) && caps[i].getName().equals(name)) >+ List/*<IProvidedCapability>*/caps = iu.getProvidedCapabilities(); >+ for (int i = 0; i < caps.size(); i++) { >+ IProvidedCapability cap = (IProvidedCapability) caps.get(i); >+ if (cap.getNamespace().equals(namespace) && cap.getName().equals(name)) > return; > > } >@@ -196,9 +198,9 @@ > } > > public void assertRequires(IInstallableUnit iu, String namespace, String name) { >- IRequirement[] reqs = iu.getRequiredCapabilities(); >- for (int i = 0; i < reqs.length; i++) { >- IRequiredCapability reqCap = (IRequiredCapability) reqs[i]; >+ List/*<IRequirement>*/reqs = iu.getRequiredCapabilities(); >+ for (int i = 0; i < reqs.size(); i++) { >+ IRequiredCapability reqCap = (IRequiredCapability) reqs.get(i); > if (reqCap.getNamespace().equals(namespace) && reqCap.getName().equals(name)) > return; > >@@ -210,9 +212,9 @@ > outer: for (Iterator iterator = requiredIUs.iterator(); iterator.hasNext();) { > IInstallableUnit reqIU = (IInstallableUnit) iterator.next(); > >- IRequirement[] reqs = iu.getRequiredCapabilities(); >- for (int i = 0; i < reqs.length; i++) { >- IRequiredCapability reqCap = (IRequiredCapability) reqs[i]; >+ List/*<IRequirement>*/reqs = iu.getRequiredCapabilities(); >+ for (int i = 0; i < reqs.size(); i++) { >+ IRequiredCapability reqCap = (IRequiredCapability) reqs.get(i); > if (reqCap.getNamespace().equals(IU_NAMESPACE) && reqCap.getName().equals(reqIU.getId()) && reqCap.getRange().isIncluded(reqIU.getVersion())) { > iterator.remove(); > continue outer; >Index: src/org/eclipse/pde/build/internal/tests/p2/PublishingTests.java >=================================================================== >RCS file: /cvsroot/eclipse/pde/build/org.eclipse.pde.build.tests/src/org/eclipse/pde/build/internal/tests/p2/PublishingTests.java,v >retrieving revision 1.83.2.8 >diff -u -r1.83.2.8 PublishingTests.java >--- src/org/eclipse/pde/build/internal/tests/p2/PublishingTests.java 21 Dec 2009 17:39:09 -0000 1.83.2.8 >+++ src/org/eclipse/pde/build/internal/tests/p2/PublishingTests.java 30 Dec 2009 01:06:31 -0000 >@@ -26,7 +26,6 @@ > import org.eclipse.equinox.internal.provisional.p2.metadata.VersionRange; > import org.eclipse.equinox.internal.provisional.p2.metadata.query.InstallableUnitQuery; > import org.eclipse.equinox.p2.metadata.IInstallableUnit; >-import org.eclipse.equinox.p2.metadata.IRequirement; > import org.eclipse.equinox.p2.metadata.query.IQueryResult; > import org.eclipse.equinox.p2.repository.metadata.IMetadataRepository; > import org.eclipse.osgi.util.ManifestElement; >@@ -1586,12 +1585,12 @@ > assertEquals(iu.getVersion().toString(), "1.0.0"); > > IInstallableUnit common = getIU(repo, EQUINOX_COMMON); >- IRequirement[] required = iu.getRequiredCapabilities(); >- assertEquals(required.length, 2); >- if (((IRequiredCapability) required[0]).getName().equals(EQUINOX_COMMON)) >- assertEquals(((IRequiredCapability) required[0]).getRange(), new VersionRange(common.getVersion(), true, Version.MAX_VERSION, true)); >+ List/*<IRequirement>*/required = iu.getRequiredCapabilities(); >+ assertEquals(required.size(), 2); >+ if (((IRequiredCapability) required.get(0)).getName().equals(EQUINOX_COMMON)) >+ assertEquals(((IRequiredCapability) required.get(0)).getRange(), new VersionRange(common.getVersion(), true, Version.MAX_VERSION, true)); > else >- assertEquals(((IRequiredCapability) required[1]).getRange(), new VersionRange(common.getVersion(), true, Version.MAX_VERSION, true)); >+ assertEquals(((IRequiredCapability) required.get(1)).getRange(), new VersionRange(common.getVersion(), true, Version.MAX_VERSION, true)); > } > > public void testPublish_P2InfConfigProperty() throws Exception { >@@ -1802,9 +1801,9 @@ > > IMetadataRepository repo = loadMetadataRepository(buildFolder.getFolder("buildRepo").getLocationURI()); > IInstallableUnit iu = getIU(repo, "foo"); >- IRequirement[] required = iu.getRequiredCapabilities(); >- for (int i = 0; i < required.length; i++) { >- IRequiredCapability reqCap = (IRequiredCapability) required[i]; >+ List/*<IRequirement>*/required = iu.getRequiredCapabilities(); >+ for (int i = 0; i < required.size(); i++) { >+ IRequiredCapability reqCap = (IRequiredCapability) required.get(i); > if (reqCap.getName().equals("a")) { > VersionRange range = reqCap.getRange(); > assertTrue(Version.toOSGiVersion(range.getMinimum()).getQualifier().startsWith("20")); >#P org.eclipse.pde.core >Index: src/org/eclipse/pde/internal/core/target/IUBundleContainer.java >=================================================================== >RCS file: /cvsroot/eclipse/pde/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/target/IUBundleContainer.java,v >retrieving revision 1.5.2.8 >diff -u -r1.5.2.8 IUBundleContainer.java >--- src/org/eclipse/pde/internal/core/target/IUBundleContainer.java 16 Dec 2009 15:56:59 -0000 1.5.2.8 >+++ src/org/eclipse/pde/internal/core/target/IUBundleContainer.java 30 Dec 2009 01:06:33 -0000 >@@ -259,9 +259,9 @@ > Iterator iterator = queryResult.iterator(); > while (iterator.hasNext()) { > IInstallableUnit unit = (IInstallableUnit) iterator.next(); >- IArtifactKey[] artifacts = unit.getArtifacts(); >- for (int i = 0; i < artifacts.length; i++) { >- IArtifactKey key = artifacts[i]; >+ List/*<IArtifactKey*/artifacts = unit.getArtifacts(); >+ for (int i = 0; i < artifacts.size(); i++) { >+ IArtifactKey key = (IArtifactKey) artifacts.get(i); > File file = repo.getArtifactFile(key); > if (file == null) { > // TODO: missing bundle >@@ -337,15 +337,15 @@ > > IProgressMonitor loadMonitor = new SubProgressMonitor(subMonitor, 10); > loadMonitor.beginTask(null, repoCount * 10); >- IMetadataRepository[] metadataRepos = new IMetadataRepository[repoCount]; >+ List metadataRepos = new ArrayList(repoCount); > IMetadataRepositoryManager manager = getRepoManager(); > for (int i = 0; i < repoCount; ++i) >- metadataRepos[i] = manager.loadRepository(repositories[i], new SubProgressMonitor(loadMonitor, 10)); >+ metadataRepos.add(manager.loadRepository(repositories[i], new SubProgressMonitor(loadMonitor, 10))); > loadMonitor.done(); > > IQueryable allMetadata; > if (repoCount == 1) { >- allMetadata = metadataRepos[0]; >+ allMetadata = (IQueryable) metadataRepos.get(0); > } else { > allMetadata = new CompoundQueryable(metadataRepos); > } >@@ -369,8 +369,9 @@ > return new IResolvedBundle[0]; > } > >- ArrayList operands = new ArrayList(queryResult.size()); >- Iterator itor = queryResult.iterator(); >+ Set querySet = queryResult.unmodifiableSet(); >+ ArrayList operands = new ArrayList(querySet.size()); >+ Iterator itor = querySet.iterator(); > while (itor.hasNext()) { > operands.add(new InstallableUnitOperand(null, (IInstallableUnit) itor.next())); > } >@@ -416,9 +417,9 @@ > Iterator iterator = queryResult.iterator(); > while (iterator.hasNext()) { > IInstallableUnit unit = (IInstallableUnit) iterator.next(); >- IArtifactKey[] artifacts = unit.getArtifacts(); >- for (int i = 0; i < artifacts.length; i++) { >- IArtifactKey key = artifacts[i]; >+ List/*<IArtifactKey>*/artifacts = unit.getArtifacts(); >+ for (int i = 0; i < artifacts.size(); i++) { >+ IArtifactKey key = (IArtifactKey) artifacts.get(i); > File file = repo.getArtifactFile(key); > if (file == null) { > // TODO: missing bundle >#P org.eclipse.pde.ui >Index: src/org/eclipse/pde/internal/ui/build/RuntimeInstallJob.java >=================================================================== >RCS file: /cvsroot/eclipse/pde/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/build/RuntimeInstallJob.java,v >retrieving revision 1.16.2.10 >diff -u -r1.16.2.10 RuntimeInstallJob.java >--- src/org/eclipse/pde/internal/ui/build/RuntimeInstallJob.java 16 Dec 2009 15:56:59 -0000 1.16.2.10 >+++ src/org/eclipse/pde/internal/ui/build/RuntimeInstallJob.java 30 Dec 2009 01:06:35 -0000 >@@ -126,20 +126,20 @@ > // Check if the right version exists in the new meta repo > Version newVersion = Version.parseVersion(version); > IQueryResult queryMatches = metaRepo.query(new InstallableUnitQuery(id, newVersion), monitor); >- if (queryMatches.size() == 0) { >+ if (queryMatches.isEmpty()) { > return new Status(IStatus.ERROR, PDEPlugin.getPluginId(), NLS.bind(PDEUIMessages.RuntimeInstallJob_ErrorCouldNotFindUnitInRepo, new String[] {id, version})); > } > >- IInstallableUnit iuToInstall = (IInstallableUnit) queryMatches.toArray(IInstallableUnit.class)[0]; >+ IInstallableUnit iuToInstall = (IInstallableUnit) queryMatches.iterator().next(); > > // Find out if the profile already has that iu installed > queryMatches = profile.query(new InstallableUnitQuery(id), new SubProgressMonitor(monitor, 0)); >- if (queryMatches.size() == 0) { >+ if (queryMatches.isEmpty()) { > // Just install the new iu into the profile > toInstall.add(iuToInstall); > } else { > // There is an existing iu that we need to replace using an installable unit patch >- Version existingVersion = ((IInstallableUnit) queryMatches.toArray(IInstallableUnit.class)[0]).getVersion(); >+ Version existingVersion = ((IInstallableUnit) queryMatches.iterator().next()).getVersion(); > toInstall.add(createInstallableUnitPatch(id, newVersion, existingVersion, profile, monitor)); > } > monitor.worked(2); >@@ -204,9 +204,9 @@ > IQueryResult queryMatches = profile.query(new MatchQuery() { > public boolean isMatch(Object candidate) { > if (candidate instanceof IInstallableUnit) { >- IRequirement[] reqs = ((IInstallableUnit) candidate).getRequiredCapabilities(); >- for (int i = 0; i < reqs.length; i++) { >- IRequiredCapability reqCap = (IRequiredCapability) reqs[i]; >+ List/*<IRequirement>*/reqs = ((IInstallableUnit) candidate).getRequiredCapabilities(); >+ for (int i = 0; i < reqs.size(); i++) { >+ IRequiredCapability reqCap = (IRequiredCapability) reqs.get(i); > if (reqCap.getName().equals(id)) { > if (new VersionRange(existingVersion, true, existingVersion, true).equals(reqCap.getRange())) { > return true; >@@ -218,7 +218,7 @@ > } > }, monitor); > if (!queryMatches.isEmpty()) { >- IInstallableUnit lifecycleUnit = (IInstallableUnit) queryMatches.toArray(IInstallableUnit.class)[0]; >+ IInstallableUnit lifecycleUnit = (IInstallableUnit) queryMatches.iterator().next(); > iuPatchDescription.setLifeCycle(MetadataFactory.createRequiredCapability(IInstallableUnit.NAMESPACE_IU_ID, lifecycleUnit.getId(), new VersionRange(lifecycleUnit.getVersion(), true, lifecycleUnit.getVersion(), true), null, false, false, false)); > } > >Index: src/org/eclipse/pde/internal/ui/shared/target/StyledBundleLabelProvider.java >=================================================================== >RCS file: /cvsroot/eclipse/pde/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/shared/target/StyledBundleLabelProvider.java,v >retrieving revision 1.4.6.4 >diff -u -r1.4.6.4 StyledBundleLabelProvider.java >--- src/org/eclipse/pde/internal/ui/shared/target/StyledBundleLabelProvider.java 8 Dec 2009 15:46:44 -0000 1.4.6.4 >+++ src/org/eclipse/pde/internal/ui/shared/target/StyledBundleLabelProvider.java 30 Dec 2009 01:06:35 -0000 >@@ -13,8 +13,8 @@ > import com.ibm.icu.text.MessageFormat; > import java.net.URI; > import org.eclipse.core.runtime.*; >+import org.eclipse.equinox.internal.p2.metadata.TranslationSupport; > import org.eclipse.equinox.internal.provisional.frameworkadmin.BundleInfo; >-import org.eclipse.equinox.p2.common.TranslationSupport; > import org.eclipse.equinox.p2.metadata.IInstallableUnit; > import org.eclipse.jface.resource.ImageDescriptor; > import org.eclipse.jface.viewers.*; >@@ -50,7 +50,7 @@ > PDEPlugin.getDefault().getLabelProvider().connect(this); > fShowVersion = showVersion; > fAppendResolvedVariables = appendResolvedVariables; >- fTranslations = new TranslationSupport(); >+ fTranslations = TranslationSupport.getInstance(); > } > > /* (non-Javadoc)
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 292691
:
152095
|
152205
|
152362
|
152365
|
152504
|
152544
|
152984
|
152986
|
153141
|
153282
|
153349
|
153895
|
153988
|
154541
|
154542
|
154883
|
155120
|
155154
|
155466
|
155547
|
155813
|
155814
|
155879
|
155912
|
155913
|
155979